]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kconfig: remove unneeded code in expr_compare_type()
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 11 Jun 2024 17:55:10 +0000 (02:55 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 15 Jul 2024 16:08:36 +0000 (01:08 +0900)
commitcd90952101c86267193b263ed3f0753f0715700e
tree124ed4cdc7b553e892c17d4d353887049440abb1
parente570ef438fcd279514691f0aae903272d45e45e9
kconfig: remove unneeded code in expr_compare_type()

The condition (t2 == 0) never becomes true because the zero value
(i.e., E_NONE) is only used as a dummy type for prevtoken. It can
be passed to t1, but not to t2.

The caller of this function only checks expr_compare_type() > 0.
Therefore, the distinction between 0 and -1 is unnecessary.

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