diff mbox series

[v2,2/6] kconfig: remove unneeded input_mode test in conf()

Message ID 1519776926-30459-3-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 4bb3a5b085cd6f98aad10be9bd87532ff26ae086
Headers show
Series kconfig: some clean-ups and rename silentoldconfig | expand

Commit Message

Masahiro Yamada Feb. 28, 2018, 12:15 a.m. UTC
conf() is never called for listnewconfig / olddefconfig.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>

---

Changes in v2: None

 scripts/kconfig/conf.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

-- 
2.7.4
diff mbox series

Patch

diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 4227d3b..1faa55f 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;