From: Masahiro Yamada Date: Wed, 28 Feb 2018 00:15:23 +0000 (+0900) Subject: kconfig: remove redundant input_mode test for check_conf() loop X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=88c63806fe5084f148caa35d479320f283998988;p=carl9170fw.git kconfig: remove redundant input_mode test for check_conf() loop 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 Reviewed-by: Ulf Magnusson Signed-off-by: Christian Lamparter --- diff --git a/config/conf.c b/config/conf.c index 0da602a..927e3ba 100644 --- a/config/conf.c +++ b/config/conf.c @@ -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; }