summaryrefslogtreecommitdiffstats
path: root/scripts/documentation-file-ref-check
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-06-11 19:55:10 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2024-07-15 18:08:36 +0200
commitcd90952101c86267193b263ed3f0753f0715700e (patch)
tree124ed4cdc7b553e892c17d4d353887049440abb1 /scripts/documentation-file-ref-check
parentkconfig: add -e and -u options to *conf-cfg.sh scripts (diff)
downloadlinux-cd90952101c86267193b263ed3f0753f0715700e.tar.xz
linux-cd90952101c86267193b263ed3f0753f0715700e.zip
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>
Diffstat (limited to 'scripts/documentation-file-ref-check')
0 files changed, 0 insertions, 0 deletions