kconfig: remove redundant input_mode test for check_conf() loop
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 28 Feb 2018 00:15:23 +0000 (09:15 +0900)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 10 Feb 2019 21:06:26 +0000 (22:06 +0100)
check_conf() never increments conf_cnt for listnewconfig, so conf_cnt
is always zero.

In other words, conf_cnt is not zero, "input_mode != listnewconfig"
is met.

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 0da602a422d23e731a5b80e9ae509eeefd4382ed..927e3ba5830f0aeb7fdf19de3768f013494411f2 100644 (file)
@@ -629,7 +629,7 @@ int main(int ac, char **av)
                do {
                        conf_cnt = 0;
                        check_conf(&rootmenu);
-               } while (conf_cnt && input_mode != listnewconfig);
+               } while (conf_cnt);
                break;
        }