From: Masahiro Yamada Date: Wed, 28 Feb 2018 00:15:22 +0000 (+0900) Subject: kconfig: remove unneeded input_mode test in conf() X-Git-Tag: v4.17-rc1~144^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bb3a5b085cd6f98aad10be9bd87532ff26ae086;p=thirdparty%2Flinux.git kconfig: remove unneeded input_mode test in conf() conf() is never called for listnewconfig / olddefconfig. Signed-off-by: Masahiro Yamada Reviewed-by: Ulf Magnusson --- diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 4227d3ba5ed26..1faa55f93a626 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;