提交 074a04f5 编写于 作者: M Masahiro Yamada

modpost: remove redundant is_vmlinux() test

The second test of is_vmlinux() is redundant.
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册