diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-11-13 11:59:41 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-11-21 02:18:39 +0100 |
commit | 1791360cb37ff5ef797afe9006cb315ebb7e969e (patch) | |
tree | c5dbd3b74ee621110c6da72459ff21dfc94796f1 /scripts/kconfig | |
parent | modpost: fix array_size.cocci warning (diff) | |
download | linux-1791360cb37ff5ef797afe9006cb315ebb7e969e.tar.xz linux-1791360cb37ff5ef797afe9006cb315ebb7e969e.zip |
kconfig: remove unneeded variable in get_prompt_str()
The variable 'accessible' is redundant.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/menu.c | 4 |
1 files changed, 1 insertions, 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) { |