summaryrefslogtreecommitdiff
path: root/drivers/s390/char/sclp_cmd.c
diff options
context:
space:
mode:
authorSumanth Korikkar <sumanthk@linux.ibm.com>2023-09-29 19:12:04 +0200
committerVasily Gorbik <gor@linux.ibm.com>2023-10-25 15:08:29 +0200
commite3f4170ccf20ebe2985b8e166184dd2d54220b60 (patch)
tree24936e917bbbaeade88140f92079c26589471a69 /drivers/s390/char/sclp_cmd.c
parentaecd5a37b5ef4de4f6402dc079672e4243cc4c13 (diff)
downloadlwn-e3f4170ccf20ebe2985b8e166184dd2d54220b60.tar.gz
lwn-e3f4170ccf20ebe2985b8e166184dd2d54220b60.zip
s390/sclp: handle default case in sclp memory notifier
When new memory notifier types are added in common code and unimplemented on s390, return success instead of EINVAL return code. This prevents breakage when new memory notifier types are added. Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'drivers/s390/char/sclp_cmd.c')
-rw-r--r--drivers/s390/char/sclp_cmd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp_cmd.c b/drivers/s390/char/sclp_cmd.c
index b73edf0cd725..11c428f4c7cf 100644
--- a/drivers/s390/char/sclp_cmd.c
+++ b/drivers/s390/char/sclp_cmd.c
@@ -353,7 +353,6 @@ static int sclp_mem_notifier(struct notifier_block *nb,
sclp_mem_change_state(start, size, 0);
break;
default:
- rc = -EINVAL;
break;
}
mutex_unlock(&sclp_mem_mutex);