diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 8606b6caa21b7408f4982bfa98a68b46eb302e89..9e70a6ac1fcb1b592818f3b9456cbe0f67623f9f 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");