]> Git Repo - linux.git/commitdiff
s390/sclp: remove unhandled memory notifier type
authorSumanth Korikkar <[email protected]>
Mon, 8 Jan 2024 13:27:45 +0000 (14:27 +0100)
committerAndrew Morton <[email protected]>
Thu, 22 Feb 2024 00:00:02 +0000 (16:00 -0800)
Remove memory notifier types which are unhandled by s390.  Unhandled
memory notifier types are covered by default case.

Link: https://lkml.kernel.org/r/[email protected]
Suggested-by: Alexander Gordeev <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Sumanth Korikkar <[email protected]>
Cc: Aneesh Kumar K.V <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Cc: Gerald Schaefer <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Oscar Salvador <[email protected]>
Cc: Vasily Gorbik <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
drivers/s390/char/sclp_cmd.c

index 11c428f4c7cf9c9183810479f50aa63466fc8ada..355e63e44e9546148053aa85de94d430dbfce913 100644 (file)
@@ -340,9 +340,6 @@ static int sclp_mem_notifier(struct notifier_block *nb,
                if (contains_standby_increment(start, start + size))
                        rc = -EPERM;
                break;
-       case MEM_ONLINE:
-       case MEM_CANCEL_OFFLINE:
-               break;
        case MEM_GOING_ONLINE:
                rc = sclp_mem_change_state(start, size, 1);
                break;
This page took 0.075482 seconds and 4 git commands to generate.