Commit cd909521 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent e570ef43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment