Skip to content

Commit 1791360

Browse files
committed
kconfig: remove unneeded variable in get_prompt_str()
The variable 'accessible' is redundant. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 30daacc commit 1791360

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/kconfig/menu.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,10 +724,8 @@ static void get_prompt_str(struct gstr *r, struct property *prop,
724724

725725
menu = prop->menu;
726726
for (i = 0; menu != &rootmenu && i < 8; menu = menu->parent) {
727-
bool accessible = menu_is_visible(menu);
728-
729727
submenu[i++] = menu;
730-
if (location == NULL && accessible)
728+
if (location == NULL && menu_is_visible(menu))
731729
location = menu;
732730
}
733731
if (head && location) {

0 commit comments

Comments
 (0)