kconfig: qconf: remove unnecessary mode check in ConfigItem::updateMenu()

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>
This commit is contained in:
Masahiro Yamada 2024-10-24 03:18:03 +09:00
parent a914032b71
commit d6a91e28d1

View File

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