diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-05-09 05:50:39 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-05-17 09:44:59 -0400 |
commit | 074a04f572effefe410d7ee452cf3755e828c031 (patch) | |
tree | 01513f13861d271a4e92b27cf30efb510e3ff84c /scripts | |
parent | d62c476521a63053cb28d76ac50e02c2d13b1619 (diff) |
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')
-rw-r--r-- | scripts/mod/modpost.c | 3 |
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) | |||
1971 | handle_modversions(mod, &info, sym, symname); | 1971 | handle_modversions(mod, &info, sym, symname); |
1972 | handle_moddevtable(mod, &info, sym, symname); | 1972 | handle_moddevtable(mod, &info, sym, symname); |
1973 | } | 1973 | } |
1974 | if (!is_vmlinux(modname) || | 1974 | if (!is_vmlinux(modname) || vmlinux_section_warnings) |
1975 | (is_vmlinux(modname) && vmlinux_section_warnings)) | ||
1976 | check_sec_ref(mod, modname, &info); | 1975 | check_sec_ref(mod, modname, &info); |
1977 | 1976 | ||
1978 | version = get_modinfo(&info, "version"); | 1977 | version = get_modinfo(&info, "version"); |