Commit 701c3167 authored by zuoqilin's avatar zuoqilin Committed by Michael Ellerman

powerpc/pseries/cmm: Remove unneeded variable "ret"

Remove unneeded variable: "ret".
Signed-off-by: default avatarzuoqilin <zuoqilin@yulong.com>
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Just return NOTIFY_OK directly]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210326075619.48-1-zuoqilin1@163.com
parent 0a3ef48c
...@@ -475,8 +475,6 @@ static struct notifier_block cmm_reboot_nb = { ...@@ -475,8 +475,6 @@ static struct notifier_block cmm_reboot_nb = {
static int cmm_memory_cb(struct notifier_block *self, static int cmm_memory_cb(struct notifier_block *self,
unsigned long action, void *arg) unsigned long action, void *arg)
{ {
int ret = 0;
switch (action) { switch (action) {
case MEM_GOING_OFFLINE: case MEM_GOING_OFFLINE:
mutex_lock(&hotplug_mutex); mutex_lock(&hotplug_mutex);
...@@ -493,7 +491,7 @@ static int cmm_memory_cb(struct notifier_block *self, ...@@ -493,7 +491,7 @@ static int cmm_memory_cb(struct notifier_block *self,
break; break;
} }
return notifier_from_errno(ret); return NOTIFY_OK;
} }
static struct notifier_block cmm_mem_nb = { static struct notifier_block cmm_mem_nb = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment