powerpc/pseries: Cleanup use of notifier_from_errno()

Minor cleanup of notifier_from_errno() in powerpc.

notifier_from_errno() now contains the if(ret)/else conditional.
There is no need to do it in the powerpc code.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Prarit Bhargava 2011-01-13 04:09:01 +00:00 committed by Benjamin Herrenschmidt
parent ae39573a19
commit 7e26065d8b
1 changed files with 2 additions and 12 deletions

View File

@ -508,12 +508,7 @@ static int cmm_memory_isolate_cb(struct notifier_block *self,
if (action == MEM_ISOLATE_COUNT) if (action == MEM_ISOLATE_COUNT)
ret = cmm_count_pages(arg); ret = cmm_count_pages(arg);
if (ret) return notifier_from_errno(ret);
ret = notifier_from_errno(ret);
else
ret = NOTIFY_OK;
return ret;
} }
static struct notifier_block cmm_mem_isolate_nb = { static struct notifier_block cmm_mem_isolate_nb = {
@ -635,12 +630,7 @@ static int cmm_memory_cb(struct notifier_block *self,
break; break;
} }
if (ret) return notifier_from_errno(ret);
ret = notifier_from_errno(ret);
else
ret = NOTIFY_OK;
return ret;
} }
static struct notifier_block cmm_mem_nb = { static struct notifier_block cmm_mem_nb = {