kconfig: do not delay the cur_filename update
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 2 Feb 2024 15:58:12 +0000 (00:58 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Feb 2024 09:20:40 +0000 (18:20 +0900)
commitd3e4a68fe20f3c05de77f5e300e3d76a9f68d942
tree14a47f85673b753e3ec3f40c248c740780d62f19
parentfe273c6fc318da07bdbb42d26d8e6e150aa947af
kconfig: do not delay the cur_filename update

Currently, cur_filename is updated at the first token of each statement.
However, this seems unnecessary based on my understanding; the parser
can use the same variable as the lexer tracks.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/lexer.l
scripts/kconfig/parser.y