kconfig: remove unneeded input_mode test in conf()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 28 Feb 2018 00:15:22 +0000 (09:15 +0900)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 10 Feb 2019 21:05:57 +0000 (22:05 +0100)
conf() is never called for listnewconfig / olddefconfig.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/conf.c

index 0d21a01122f7a70078fde40bb66cdae3ef03689d..0da602a422d23e731a5b80e9ae509eeefd4382ed 100644 (file)
@@ -354,8 +354,7 @@ static void conf(struct menu *menu)
 
                switch (prop->type) {
                case P_MENU:
-                       if ((input_mode == listnewconfig ||
-                            input_mode == oldnoconfig) &&
+                       if (input_mode == listnewconfig) &&
                            rootEntry != menu) {
                                check_conf(menu);
                                return;