s390/sclp: remove unhandled memory notifier type
authorSumanth Korikkar <sumanthk@linux.ibm.com>
Mon, 8 Jan 2024 13:27:45 +0000 (14:27 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
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/20240108132747.3238763-4-sumanthk@linux.ibm.com
Suggested-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
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;