diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-28 09:15:23 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-03-26 02:03:59 +0900 |
commit | 99f0b6578bab440586befe2cdb6db8e38fec3acd (patch) | |
tree | b9605c7e479c5f94941bd252f039b190bc00cb12 /scripts | |
parent | 4bb3a5b085cd6f98aad10be9bd87532ff26ae086 (diff) | |
download | linux-stable-99f0b6578bab440586befe2cdb6db8e38fec3acd.tar.gz linux-stable-99f0b6578bab440586befe2cdb6db8e38fec3acd.tar.bz2 linux-stable-99f0b6578bab440586befe2cdb6db8e38fec3acd.zip |
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')
-rw-r--r-- | scripts/kconfig/conf.c | 2 |
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: |