diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-04-22 19:10:54 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-05-02 13:48:26 +0300 |
commit | 1da251c60def5df1475ed5e8670d7ba2b6a33983 (patch) | |
tree | 4d4cec5f37f6894f0f3fe83e1b64d28f876da628 /scripts/kconfig/parser.y | |
parent | 2b1ab140506822dfc4711be08ea46fb4a83bf1ea (diff) | |
download | linux-1da251c60def5df1475ed5e8670d7ba2b6a33983.tar.xz |
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/parser.y')
-rw-r--r-- | scripts/kconfig/parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/parser.y b/scripts/kconfig/parser.y index 8f339b47fe8d..b95993ff3837 100644 --- a/scripts/kconfig/parser.y +++ b/scripts/kconfig/parser.y @@ -224,7 +224,7 @@ config_option: T_MODULES T_EOL choice: T_CHOICE T_EOL { - struct symbol *sym = sym_lookup(NULL, SYMBOL_CHOICE); + struct symbol *sym = sym_lookup(NULL, 0); sym->flags |= SYMBOL_NO_WRITE; menu_add_entry(sym); menu_add_expr(P_CHOICE, NULL, NULL); |