kconfig: fix off-by-one in zconf_error()
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 2 Feb 2024 15:58:00 +0000 (00:58 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Feb 2024 09:20:40 +0000 (18:20 +0900)
commit313c6cd3c2d538073b71f15a46c2cbcde5712f46
tree07e8ff5592741fcfe091f6a47ad7c9ccd62bbc16
parentaf8bbce92044dc58e4cc039ab94ee5d470a621f5
kconfig: fix off-by-one in zconf_error()

yyerror() reports the line number of the next line.

This +1 adjustment was introduced more than 20 years ago [1]. At that
time, the line number was decremented then incremented back and forth.

The line number management was refactored in a more maintainable way.
Such compensation is no longer needed.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=d4f8a4530eb07a1385fd17b0e62a7dce97486f49

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