From: Masahiro Yamada Date: Wed, 23 Oct 2024 18:17:52 +0000 (+0900) Subject: kconfig: qconf: remove redundant type check for choice members X-Git-Tag: v6.13-rc1~16^2~65 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0bab492cfe04e8b61188d4162b302b1f7ae9f4df;p=linux-2.6-block.git kconfig: qconf: remove redundant type check for choice members Since commit fde192511bdb ("kconfig: remove tristate choice support"), choice members are always boolean. The type check is redundant. Signed-off-by: Masahiro Yamada --- diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 18cc5c184f56..58c57c908149 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -159,7 +159,7 @@ void ConfigItem::updateMenu(void) ch = 'M'; break; default: - if (sym_is_choice_value(sym) && type == S_BOOLEAN) + if (sym_is_choice_value(sym)) setIcon(promptColIdx, choiceNoIcon); else setIcon(promptColIdx, symbolNoIcon);