]> www.infradead.org Git - users/willy/linux.git/commit
kconfig: refactor conf_set_all_new_symbols() to reduce indentation level
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 2 Jun 2024 12:54:15 +0000 (21:54 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 15 Jul 2024 16:08:36 +0000 (01:08 +0900)
commit826ee96dd4f72028b98366a21d986d35e1d781d5
tree31948986099a62d097c42418e513600b1fcf5344
parentfde192511bdbff554320b31574bb8a9cb3275522
kconfig: refactor conf_set_all_new_symbols() to reduce indentation level

The outer switch statement can be avoided by continue'ing earlier the
loop when the symbol type is neither S_BOOLEAN nor S_TRISTATE.

Remove it to reduce the indentation level by one. In addition, avoid
the repetition of sym->def[S_DEF_USER].tri.

No functional change intended.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/kconfig/conf.c