Skip to content

Commit 4bb3a5b

Browse files
committed
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>
1 parent 59a80b5 commit 4bb3a5b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎scripts/kconfig/conf.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,7 @@ static void conf(struct menu *menu)
358358

359359
switch (prop->type) {
360360
case P_MENU:
361-
if ((input_mode == silentoldconfig ||
362-
input_mode == listnewconfig ||
363-
input_mode == olddefconfig) &&
361+
if (input_mode == silentoldconfig &&
364362
rootEntry != menu) {
365363
check_conf(menu);
366364
return;

0 commit comments

Comments
 (0)