Skip to content

Commit 99f0b65

Browse files
committed
kconfig: remove redundant input_mode test for check_conf() loop
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>
1 parent 4bb3a5b commit 99f0b65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/kconfig/conf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ int main(int ac, char **av)
669669
do {
670670
conf_cnt = 0;
671671
check_conf(&rootmenu);
672-
} while (conf_cnt && input_mode != listnewconfig);
672+
} while (conf_cnt);
673673
break;
674674
case olddefconfig:
675675
default:

0 commit comments

Comments
 (0)