Commit 074a04f5 authored by Masahiro Yamada's avatar Masahiro Yamada

modpost: remove redundant is_vmlinux() test

The second test of is_vmlinux() is redundant.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent d62c4765
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment