summaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-05-09 18:50:39 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-05-17 22:44:59 +0900
commit074a04f572effefe410d7ee452cf3755e828c031 (patch)
tree01513f13861d271a4e92b27cf30efb510e3ff84c /scripts/mod
parentd62c476521a63053cb28d76ac50e02c2d13b1619 (diff)
downloadlinux-074a04f572effefe410d7ee452cf3755e828c031.tar.bz2
modpost: remove redundant is_vmlinux() test
The second test of is_vmlinux() is redundant. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/modpost.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 8606b6caa21b..9e70a6ac1fcb 100644
--- a/scripts/mod/modpost.c
+++ b/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");