提交 0fa3a88c 编写于 作者: J Jan Beulich 提交者: Sam Ravnborg

kbuild: remove pointless strdup() on arguments passed to new_module() in modpost

new_module() itself already calls strdup() on its modname parameter.
Signed-off-by: NJan Beulich <jbeulich@novell.com>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 fe8d0a41
......@@ -1913,7 +1913,7 @@ static void read_dump(const char *fname, unsigned int kernel)
if (!mod) {
if (is_vmlinux(modname))
have_vmlinux = 1;
mod = new_module(NOFAIL(strdup(modname)));
mod = new_module(modname);
mod->skip = 1;
}
s = sym_add_exported(symname, mod, export_no(export));
......@@ -1997,7 +1997,7 @@ static void read_markers(const char *fname)
mod = find_module(modname);
if (!mod) {
mod = new_module(NOFAIL(strdup(modname)));
mod = new_module(modname);
mod->skip = 1;
}
if (is_vmlinux(modname)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册