]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
kconfig: qconf: remove redundant type check for choice members
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 23 Oct 2024 18:17:52 +0000 (03:17 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 5 Nov 2024 23:46:34 +0000 (08:46 +0900)
Since commit fde192511bdb ("kconfig: remove tristate choice support"),
choice members are always boolean. The type check is redundant.

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

index 18cc5c184f56e5b509b15e26ec06f0bbc419a515..58c57c9081491d0d782fb009414d5bc235d7e6a3 100644 (file)
@@ -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);