Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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");