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)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:03:59 +0000 (02:03 +0900)
conf() is never called for listnewconfig / olddefconfig.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
scripts/kconfig/conf.c

index 4227d3b..1faa55f 100644 (file)
@@ -358,9 +358,7 @@ static void conf(struct menu *menu)
 
                switch (prop->type) {
                case P_MENU:
-                       if ((input_mode == silentoldconfig ||
-                            input_mode == listnewconfig ||
-                            input_mode == olddefconfig) &&
+                       if (input_mode == silentoldconfig &&
                            rootEntry != menu) {
                                check_conf(menu);
                                return;