diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-28 09:15:22 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-03-26 02:03:59 +0900 |
commit | 4bb3a5b085cd6f98aad10be9bd87532ff26ae086 (patch) | |
tree | c9eda800c87b8b776295aaca67e1f9a620176dc6 | |
parent | 59a80b5e892ddee09139f7d7942effdf1ca532e4 (diff) |
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>
-rw-r--r-- | scripts/kconfig/conf.c | 4 |
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; |