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

kconfig: remove unneeded variable in get_prompt_str()



The variable 'accessible' is redundant.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 30daacc5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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) {