Commit 1791360c authored by Masahiro Yamada's avatar Masahiro Yamada

kconfig: remove unneeded variable in get_prompt_str()

The variable 'accessible' is redundant.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 30daacc5
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment