[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221113105943.3753945-1-masahiroy@kernel.org>
Date: Sun, 13 Nov 2022 19:59:41 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: linux-kbuild@...r.kernel.org
Cc: Masahiro Yamada <masahiroy@...nel.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/3] kconfig: remove unneeded variable in get_prompt_str()
The variable 'accessible' is redundant.
Signed-off-by: Masahiro Yamada <masahiroy@...nel.org>
---
scripts/kconfig/menu.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 109325f31bef..b90fff833588 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -724,10 +724,8 @@ static void get_prompt_str(struct gstr *r, struct property *prop,
menu = prop->menu;
for (i = 0; menu != &rootmenu && i < 8; menu = menu->parent) {
- bool accessible = menu_is_visible(menu);
-
submenu[i++] = menu;
- if (location == NULL && accessible)
+ if (location == NULL && menu_is_visible(menu))
location = menu;
}
if (head && location) {
--
2.34.1
Powered by blists - more mailing lists