From 95175f620aab51399c3a128f1a086105e728f1c0 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Wed, 28 Feb 2018 09:15:22 +0900 Subject: [PATCH] kconfig: remove unneeded input_mode test in conf() conf() is never called for listnewconfig / olddefconfig. Signed-off-by: Masahiro Yamada Reviewed-by: Ulf Magnusson Signed-off-by: Christian Lamparter --- config/conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/conf.c b/config/conf.c index 0d21a01..0da602a 100644 --- a/config/conf.c +++ b/config/conf.c @@ -354,8 +354,7 @@ static void conf(struct menu *menu) switch (prop->type) { case P_MENU: - if ((input_mode == listnewconfig || - input_mode == oldnoconfig) && + if (input_mode == listnewconfig) && rootEntry != menu) { check_conf(menu); return; -- 2.31.1