From: Masahiro Yamada Date: Wed, 28 Feb 2018 00:15:22 +0000 (+0900) Subject: kconfig: remove unneeded input_mode test in conf() X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=95175f620aab51399c3a128f1a086105e728f1c0;p=carl9170fw.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 Signed-off-by: Christian Lamparter --- 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;