mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
kconfig: remove unneeded variable in get_prompt_str()
The variable 'accessible' is redundant. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
30daacc571
commit
1791360cb3
@ -724,10 +724,8 @@ static void get_prompt_str(struct gstr *r, struct property *prop,
|
|||||||
|
|
||||||
menu = prop->menu;
|
menu = prop->menu;
|
||||||
for (i = 0; menu != &rootmenu && i < 8; menu = menu->parent) {
|
for (i = 0; menu != &rootmenu && i < 8; menu = menu->parent) {
|
||||||
bool accessible = menu_is_visible(menu);
|
|
||||||
|
|
||||||
submenu[i++] = menu;
|
submenu[i++] = menu;
|
||||||
if (location == NULL && accessible)
|
if (location == NULL && menu_is_visible(menu))
|
||||||
location = menu;
|
location = menu;
|
||||||
}
|
}
|
||||||
if (head && location) {
|
if (head && location) {
|
||||||
|
Loading…
Reference in New Issue
Block a user