mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
modpost: remove redundant is_vmlinux() test
The second test of is_vmlinux() is redundant. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
d62c476521
commit
074a04f572
1 changed files with 1 additions and 2 deletions
|
@ -1971,8 +1971,7 @@ static void read_symbols(char *modname)
|
||||||
handle_modversions(mod, &info, sym, symname);
|
handle_modversions(mod, &info, sym, symname);
|
||||||
handle_moddevtable(mod, &info, sym, symname);
|
handle_moddevtable(mod, &info, sym, symname);
|
||||||
}
|
}
|
||||||
if (!is_vmlinux(modname) ||
|
if (!is_vmlinux(modname) || vmlinux_section_warnings)
|
||||||
(is_vmlinux(modname) && vmlinux_section_warnings))
|
|
||||||
check_sec_ref(mod, modname, &info);
|
check_sec_ref(mod, modname, &info);
|
||||||
|
|
||||||
version = get_modinfo(&info, "version");
|
version = get_modinfo(&info, "version");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue