summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-02-28 09:15:22 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-03-26 02:03:59 +0900
commit4bb3a5b085cd6f98aad10be9bd87532ff26ae086 (patch)
treec9eda800c87b8b776295aaca67e1f9a620176dc6 /scripts
parent59a80b5e892ddee09139f7d7942effdf1ca532e4 (diff)
downloadlinux-stable-4bb3a5b085cd6f98aad10be9bd87532ff26ae086.tar.gz
linux-stable-4bb3a5b085cd6f98aad10be9bd87532ff26ae086.tar.bz2
linux-stable-4bb3a5b085cd6f98aad10be9bd87532ff26ae086.zip
kconfig: remove unneeded input_mode test in conf()
conf() is never called for listnewconfig / olddefconfig. 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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 4227d3ba5ed2..1faa55f93a62 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -358,9 +358,7 @@ static void conf(struct menu *menu)
switch (prop->type) {
case P_MENU:
- if ((input_mode == silentoldconfig ||
- input_mode == listnewconfig ||
- input_mode == olddefconfig) &&
+ if (input_mode == silentoldconfig &&
rootEntry != menu) {
check_conf(menu);
return;