Skip to content

Commit

Permalink
kconfig: remove redundant input_mode test for check_conf() loop
Browse files Browse the repository at this point in the history
check_conf() never increments conf_cnt for listnewconfig, so conf_cnt
is always zero.

In other words, conf_cnt is not zero, "input_mode != listnewconfig"
is met.

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 4bb3a5b commit 99f0b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kconfig/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ int main(int ac, char **av)
do {
conf_cnt = 0;
check_conf(&rootmenu);
} while (conf_cnt && input_mode != listnewconfig);
} while (conf_cnt);
break;
case olddefconfig:
default:
Expand Down

0 comments on commit 99f0b65

Please sign in to comment.