kconfig: remove unneeded buffer allocation in zconf_initscan()
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 7 Jan 2024 13:19:47 +0000 (22:19 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Feb 2024 09:20:39 +0000 (18:20 +0900)
commit12e3342fc7b0ec7fcb03f41bb49a1a6e3dcc0663
treeb7580f5bb9a35dc754def67b708c01577468fb8d
parentb401b621758e46812da61fa58a67c3fd8d91de0d
kconfig: remove unneeded buffer allocation in zconf_initscan()

In Kconfig, there is a stack to save the lexer state for each inclusion
level.

Currently, it operates as an empty stack, with the 'current_buf' always
pointing to an empty buffer. There is no need to preallocate the buffer.
Change it to a full stack.

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