summaryrefslogtreecommitdiff
path: root/scripts/kconfig/zconf.l
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-11 20:01:07 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-22 00:25:55 +0900
commitb3d1d9d3c36214a50c18ba377b47152c021768df (patch)
tree74ff277d9e3d1129be576d7a9615cde862d655ec /scripts/kconfig/zconf.l
parentcaaebb3c6de3493c7f11f79a5dddc6691a40e55f (diff)
kconfig: stop associating kconf_id with yylval
The lexer has conventionally associated kconf_id data with yylval to carry additional information to the parser. No token is relying on this any more. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/zconf.l')
-rw-r--r--scripts/kconfig/zconf.l2
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l
index 90d2f37159dc..ed0d0a3b0d62 100644
--- a/scripts/kconfig/zconf.l
+++ b/scripts/kconfig/zconf.l
@@ -104,7 +104,6 @@ n [A-Za-z0-9_-]
current_pos.lineno = yylineno;
if (id && id->flags & TF_COMMAND) {
BEGIN(PARAM);
- yylval.id = id;
return id->token;
}
alloc_string(yytext, yyleng);
@@ -163,7 +162,6 @@ n [A-Za-z0-9_-]
{n}+ {
const struct kconf_id *id = kconf_id_lookup(yytext, yyleng);
if (id && id->flags & TF_PARAM) {
- yylval.id = id;
return id->token;
}
alloc_string(yytext, yyleng);