summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.package
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-05-24 01:46:26 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2022-05-27 16:16:35 +0900
commit68fef6704e38581f7462cb7aac349978fd4ca5cc (patch)
treed09b49103160016cd35072202924f9c8132f3693 /scripts/Makefile.package
parentc5c468dcc25efc0095361bb63b6255622e22f695 (diff)
downloadlinux-stable-68fef6704e38581f7462cb7aac349978fd4ca5cc.tar.gz
linux-stable-68fef6704e38581f7462cb7aac349978fd4ca5cc.tar.bz2
linux-stable-68fef6704e38581f7462cb7aac349978fd4ca5cc.zip
modpost: squash if...else-if in find_elf_symbol2()
if ((addr - sym->st_value) < distance) { distance = addr - sym->st_value; near = sym; } else if ((addr - sym->st_value) == distance) { near = sym; } is equivalent to: if (addr - sym->st_value <= distance) { distance = addr - sym->st_value; near = sym; } (The else-if block can overwrite 'distance' with the same value). Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts/Makefile.package')
0 files changed, 0 insertions, 0 deletions