Skip to content

Commit e3f4170

Browse files
sumanthkorikkarVasily Gorbik
authored andcommitted
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>
1 parent aecd5a3 commit e3f4170

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/s390/char/sclp_cmd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ static int sclp_mem_notifier(struct notifier_block *nb,
353353
sclp_mem_change_state(start, size, 0);
354354
break;
355355
default:
356-
rc = -EINVAL;
357356
break;
358357
}
359358
mutex_unlock(&sclp_mem_mutex);

0 commit comments

Comments
 (0)