mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 16:53:58 -05:00
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>
This commit is contained in:
parent
aecd5a37b5
commit
e3f4170ccf
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue