kobject: remove unused KOBJ_MAX action
authorGarrit Franke <garritfranke@gmail.com>
Thu, 16 Jul 2020 20:31:01 +0000 (22:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2020 08:33:12 +0000 (10:33 +0200)
The loop in libb/kobj_uevent.c that checked for KOBBJ_MAX is no longer
present, we do a much more sane ARRAY_SIZE() check instead. See
5c5daf657cb5 ("Driver core: exclude kobject_uevent.c for
!CONFIG_HOTPLUG").

Signed-off-by: Garrit Franke <garritfranke@gmail.com>
Link: https://lore.kernel.org/r/20200716203100.7959-1-garritfranke@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/kobject.h

index 6cba088..ea30529 100644 (file)
@@ -59,7 +59,6 @@ enum kobject_action {
        KOBJ_OFFLINE,
        KOBJ_BIND,
        KOBJ_UNBIND,
-       KOBJ_MAX
 };
 
 struct kobject {