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)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:03:59 +0000 (02:03 +0900)
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>
scripts/kconfig/conf.c

index 1faa55f93a6269ec8e962eca564a4fc5bb68f5fb..59656d39b67131f13563eab18c43ee91e08b6a65 100644 (file)
@@ -669,7 +669,7 @@ int main(int ac, char **av)
                do {
                        conf_cnt = 0;
                        check_conf(&rootmenu);
-               } while (conf_cnt && input_mode != listnewconfig);
+               } while (conf_cnt);
                break;
        case olddefconfig:
        default: