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 <[email protected]> Signed-off-by: Sumanth Korikkar <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent aecd5a3 commit e3f4170

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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)