]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
kbuild: remove pointless strdup() on arguments passed to new_module() in modpost
authorJan Beulich <jbeulich@novell.com>
Thu, 12 Mar 2009 12:28:30 +0000 (12:28 +0000)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 11 Apr 2009 06:18:10 +0000 (08:18 +0200)
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>
scripts/mod/modpost.c

index 8cc70612984c11a392815e6d79ff94e5ec7a1fc2..df6e6286a065c500ba9cc439be59b3f04a95d6d6 100644 (file)
@@ -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)) {