From: Masahiro Yamada Date: Wed, 9 May 2018 09:50:39 +0000 (+0900) Subject: modpost: remove redundant is_vmlinux() test X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=074a04f572effefe410d7ee452cf3755e828c031;p=linux.git modpost: remove redundant is_vmlinux() test The second test of is_vmlinux() is redundant. Signed-off-by: Masahiro Yamada --- diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 8606b6caa21b7..9e70a6ac1fcb1 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -1971,8 +1971,7 @@ static void read_symbols(char *modname) handle_modversions(mod, &info, sym, symname); handle_moddevtable(mod, &info, sym, symname); } - if (!is_vmlinux(modname) || - (is_vmlinux(modname) && vmlinux_section_warnings)) + if (!is_vmlinux(modname) || vmlinux_section_warnings) check_sec_ref(mod, modname, &info); version = get_modinfo(&info, "version");