Sfoglia il codice sorgente

modpost: remove redundant is_vmlinux() test

The second test of is_vmlinux() is redundant.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada 7 anni fa
parent
commit
074a04f572
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      scripts/mod/modpost.c

+ 1 - 2
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");