summaryrefslogtreecommitdiff
path: root/scripts/kconfig/conf.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-02-28 03:15:23 +0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-03-25 20:03:59 +0300
commit99f0b6578bab440586befe2cdb6db8e38fec3acd (patch)
treeb9605c7e479c5f94941bd252f039b190bc00cb12 /scripts/kconfig/conf.c
parent4bb3a5b085cd6f98aad10be9bd87532ff26ae086 (diff)
downloadlinux-99f0b6578bab440586befe2cdb6db8e38fec3acd.tar.xz
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 <yamada.masahiro@socionext.com> Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
Diffstat (limited to 'scripts/kconfig/conf.c')
-rw-r--r--scripts/kconfig/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 1faa55f93a62..59656d39b671 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -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: