68fef6704e
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> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
devicetable-offsets.c | ||
empty.c | ||
file2alias.c | ||
list.h | ||
mk_elfconfig.c | ||
modpost.c | ||
modpost.h | ||
sumversion.c |