diff options
author | Sumanth Korikkar <sumanthk@linux.ibm.com> | 2023-09-29 20:12:04 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2023-10-25 16:08:29 +0300 |
commit | e3f4170ccf20ebe2985b8e166184dd2d54220b60 (patch) | |
tree | 24936e917bbbaeade88140f92079c26589471a69 /drivers/s390 | |
parent | aecd5a37b5ef4de4f6402dc079672e4243cc4c13 (diff) | |
download | linux-e3f4170ccf20ebe2985b8e166184dd2d54220b60.tar.xz |
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')
-rw-r--r-- | drivers/s390/char/sclp_cmd.c | 1 |
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); |