Skip to content

Commit efc8338

Browse files
henryZemasahir0y
authored andcommitted
Kconfig: remove sym_set_choice_value
sym_set_choice_value could be removed and directly call sym_set_tristate_value instead. Signed-off-by: Zeng Heng <[email protected]> Suggested-by: Masahiro Yamada <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent f3304ec commit efc8338

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

scripts/kconfig/conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ static int conf_choice(struct menu *menu)
551551
print_help(child);
552552
continue;
553553
}
554-
sym_set_choice_value(sym, child->sym);
554+
sym_set_tristate_value(child->sym, yes);
555555
for (child = child->list; child; child = child->next) {
556556
indent += 2;
557557
conf(child);

scripts/kconfig/lkc.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ static inline struct symbol *sym_get_choice_value(struct symbol *sym)
123123
return (struct symbol *)sym->curr.val;
124124
}
125125

126-
static inline bool sym_set_choice_value(struct symbol *ch, struct symbol *chval)
127-
{
128-
return sym_set_tristate_value(chval, yes);
129-
}
130-
131126
static inline bool sym_is_choice(struct symbol *sym)
132127
{
133128
return sym->flags & SYMBOL_CHOICE ? true : false;

0 commit comments

Comments
 (0)