summaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2009-03-12 12:28:30 +0000
committerSam Ravnborg <sam@ravnborg.org>2009-04-11 08:18:10 +0200
commit0fa3a88cfdfc910d7f335aef588edf9819c05d54 (patch)
tree2e1657a2f083a46f052859557bc1826267a49303 /scripts/mod
parentfe8d0a41081d6d0912386f3672ccc0bf1d675630 (diff)
downloadop-kernel-dev-0fa3a88cfdfc910d7f335aef588edf9819c05d54.zip
op-kernel-dev-0fa3a88cfdfc910d7f335aef588edf9819c05d54.tar.gz
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: Jan Beulich <jbeulich@novell.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/modpost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 8cc7061..df6e628 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -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)) {
OpenPOWER on IntegriCloud