summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-10-23 20:18:03 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2024-11-06 00:46:34 +0100
commitd6a91e28d11902e6cd5715633ed6f9b6df75de32 (patch)
tree5b5579a1aab2ae6c5ffd014b542c9cd43728ec4f /scripts
parentkconfig: qconf: refactor ConfigInfoView::clicked() (diff)
downloadlinux-d6a91e28d11902e6cd5715633ed6f9b6df75de32.tar.xz
linux-d6a91e28d11902e6cd5715633ed6f9b6df75de32.zip
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/qconf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index f59a9597f09b..6c92ef1e16ef 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -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.
*/