|
@@ -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)
|
|
|
|
- ret = notifier_from_errno(ret);
|
|
|
|
- else
|
|
|
|
- ret = NOTIFY_OK;
|
|
|
|
-
|
|
|
|
- return ret;
|
|
|
|
|
|
+ return notifier_from_errno(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)
|
|
|
|
- ret = notifier_from_errno(ret);
|
|
|
|
- else
|
|
|
|
- ret = NOTIFY_OK;
|
|
|
|
-
|
|
|
|
- return ret;
|
|
|
|
|
|
+ return notifier_from_errno(ret);
|
|
}
|
|
}
|
|
|
|
|
|
static struct notifier_block cmm_mem_nb = {
|
|
static struct notifier_block cmm_mem_nb = {
|