Skip to content

Commit

Permalink
kconfig: remove unneeded input_mode test in conf()
Browse files Browse the repository at this point in the history
conf() is never called for listnewconfig / olddefconfig.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
  • Loading branch information
Masahiro Yamada committed Mar 25, 2018
1 parent 59a80b5 commit 4bb3a5b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/kconfig/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4bb3a5b

Please sign in to comment.