diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-04-23 01:10:54 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-05-02 19:48:26 +0900 |
commit | 1da251c60def5df1475ed5e8670d7ba2b6a33983 (patch) | |
tree | 4d4cec5f37f6894f0f3fe83e1b64d28f876da628 /scripts/kconfig/symbol.c | |
parent | 2b1ab140506822dfc4711be08ea46fb4a83bf1ea (diff) | |
download | lwn-1da251c60def5df1475ed5e8670d7ba2b6a33983.tar.gz lwn-1da251c60def5df1475ed5e8670d7ba2b6a33983.zip |
kconfig: remove SYMBOL_CHOICE flag
All symbols except choices have a name.
Previously, choices were allowed to have a name, but commit c83f020973bc
("kconfig: remove named choice support") eliminated that possibility.
Now, it is easy to distinguish choices from normal symbols; if the name
is NULL, it is a choice.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
Diffstat (limited to 'scripts/kconfig/symbol.c')
-rw-r--r-- | scripts/kconfig/symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index 81fe1884ef8a..8b34992ba5ed 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c @@ -827,7 +827,7 @@ struct symbol *sym_lookup(const char *name, int flags) if (symbol->name && !strcmp(symbol->name, name) && (flags ? symbol->flags & flags - : !(symbol->flags & (SYMBOL_CONST|SYMBOL_CHOICE)))) + : !(symbol->flags & SYMBOL_CONST))) return symbol; } new_name = xstrdup(name); |