]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: remove dead code in conf_askvalue()
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 21 Feb 2021 09:26:23 +0000 (18:26 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 24 Feb 2021 06:12:06 +0000 (15:12 +0900)
commit0bd1ed41341cf5ad0154af1b846bc07352887395
tree2300e591899b75a8c14e3fa4cf860e348ba2469e
parent86e4d610fc8ad69ae2ba350eda323b2bf0a3c09d
kconfig: remove dead code in conf_askvalue()

conf_askvalue() is only called for oldconfig, syncconfig, and
oldaskconfig. If it is called for other cases, it is a bug.

So, the code after the switch statement is unreachable.

Remove the dead code, and clean up the switch statement.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/conf.c