Skip to content

Commit d6a91e2

Browse files
committed
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 <[email protected]>
1 parent a914032 commit d6a91e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/kconfig/qconf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void ConfigItem::updateMenu(void)
110110

111111
if (prop) switch (prop->type) {
112112
case P_MENU:
113-
if (list->mode == singleMode || list->mode == symbolMode) {
113+
if (list->mode == singleMode) {
114114
/* a menuconfig entry is displayed differently
115115
* depending whether it's at the view root or a child.
116116
*/

0 commit comments

Comments
 (0)