Commit efc8338e authored by Zeng Heng's avatar Zeng Heng Committed by Masahiro Yamada

Kconfig: remove sym_set_choice_value

sym_set_choice_value could be removed and directly call
sym_set_tristate_value instead.
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
Suggested-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent f3304ecd
...@@ -551,7 +551,7 @@ static int conf_choice(struct menu *menu) ...@@ -551,7 +551,7 @@ static int conf_choice(struct menu *menu)
print_help(child); print_help(child);
continue; continue;
} }
sym_set_choice_value(sym, child->sym); sym_set_tristate_value(child->sym, yes);
for (child = child->list; child; child = child->next) { for (child = child->list; child; child = child->next) {
indent += 2; indent += 2;
conf(child); conf(child);
......
...@@ -123,11 +123,6 @@ static inline struct symbol *sym_get_choice_value(struct symbol *sym) ...@@ -123,11 +123,6 @@ static inline struct symbol *sym_get_choice_value(struct symbol *sym)
return (struct symbol *)sym->curr.val; return (struct symbol *)sym->curr.val;
} }
static inline bool sym_set_choice_value(struct symbol *ch, struct symbol *chval)
{
return sym_set_tristate_value(chval, yes);
}
static inline bool sym_is_choice(struct symbol *sym) static inline bool sym_is_choice(struct symbol *sym)
{ {
return sym->flags & SYMBOL_CHOICE ? true : false; return sym->flags & SYMBOL_CHOICE ? true : false;
......
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