diff options
author | Sumanth Korikkar <[email protected]> | 2023-09-29 19:12:04 +0200 |
---|---|---|
committer | Vasily Gorbik <[email protected]> | 2023-10-25 15:08:29 +0200 |
commit | e3f4170ccf20ebe2985b8e166184dd2d54220b60 (patch) | |
tree | 24936e917bbbaeade88140f92079c26589471a69 | |
parent | aecd5a37b5ef4de4f6402dc079672e4243cc4c13 (diff) |
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 <[email protected]>
Signed-off-by: Sumanth Korikkar <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
-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); |