kconfig: qconf: remove unnecessary mode check in ConfigItem::updateMenu()
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 23 Oct 2024 18:18:03 +0000 (03:18 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 5 Nov 2024 23:46:34 +0000 (08:46 +0900)
The P_MENU entries ("menu" and "menuconfig") are never displayed in
symbolMode.

The condition, list->mode == symbolMode, is never met here.

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

index f59a959..6c92ef1 100644 (file)
@@ -110,7 +110,7 @@ void ConfigItem::updateMenu(void)
 
        if (prop) switch (prop->type) {
        case P_MENU:
-               if (list->mode == singleMode || list->mode == symbolMode) {
+               if (list->mode == singleMode) {
                        /* a menuconfig entry is displayed differently
                         * depending whether it's at the view root or a child.
                         */