modpost: remove is_shndx_special() check from section_rel(a)
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 21 May 2023 16:04:13 +0000 (01:04 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 28 May 2023 11:35:16 +0000 (20:35 +0900)
commita9bb3e5d57293773d7f925dd07e45f6e13e94947
tree24e7fddf38aeff7569da370b864577e5e129f28d
parent04ed3b476306c1b4c6e544e40d10f477c8193435
modpost: remove is_shndx_special() check from section_rel(a)

This check is unneeded. Without it, sec_name() will returns the null
string "", then section_mismatch() will return immediately.

Anyway, special section indices rarely appear in these loops.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/mod/modpost.c
scripts/mod/modpost.h