Commit 7d280674 authored by Masahiro Yamada's avatar Masahiro Yamada

kconfig: use linked list in sym_set_changed()

Following the approach employed in commit bedf9236 ("kconfig: use
linked list in get_symbol_str() to iterate over menus"), simplify the
iteration on the menus of the specified symbol.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 4cc7e6ce
...@@ -152,13 +152,11 @@ static void sym_validate_range(struct symbol *sym) ...@@ -152,13 +152,11 @@ static void sym_validate_range(struct symbol *sym)
static void sym_set_changed(struct symbol *sym) static void sym_set_changed(struct symbol *sym)
{ {
struct property *prop; struct menu *menu;
sym->flags |= SYMBOL_CHANGED; sym->flags |= SYMBOL_CHANGED;
for (prop = sym->prop; prop; prop = prop->next) { list_for_each_entry(menu, &sym->menus, link)
if (prop->menu) menu->flags |= MENU_CHANGED;
prop->menu->flags |= MENU_CHANGED;
}
} }
static void sym_set_all_changed(void) static void sym_set_all_changed(void)
......
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