diff options
| author | Jan Beulich <jbeulich@novell.com> | 2009-03-12 08:28:30 -0400 |
|---|---|---|
| committer | Sam Ravnborg <sam@ravnborg.org> | 2009-04-11 02:18:10 -0400 |
| commit | 0fa3a88cfdfc910d7f335aef588edf9819c05d54 (patch) | |
| tree | 2e1657a2f083a46f052859557bc1826267a49303 | |
| parent | fe8d0a41081d6d0912386f3672ccc0bf1d675630 (diff) | |
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>
| -rw-r--r-- | scripts/mod/modpost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 8cc70612984c..df6e6286a065 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) | |||
| 1913 | if (!mod) { | 1913 | if (!mod) { |
| 1914 | if (is_vmlinux(modname)) | 1914 | if (is_vmlinux(modname)) |
| 1915 | have_vmlinux = 1; | 1915 | have_vmlinux = 1; |
| 1916 | mod = new_module(NOFAIL(strdup(modname))); | 1916 | mod = new_module(modname); |
| 1917 | mod->skip = 1; | 1917 | mod->skip = 1; |
| 1918 | } | 1918 | } |
| 1919 | s = sym_add_exported(symname, mod, export_no(export)); | 1919 | s = sym_add_exported(symname, mod, export_no(export)); |
| @@ -1997,7 +1997,7 @@ static void read_markers(const char *fname) | |||
| 1997 | 1997 | ||
| 1998 | mod = find_module(modname); | 1998 | mod = find_module(modname); |
| 1999 | if (!mod) { | 1999 | if (!mod) { |
| 2000 | mod = new_module(NOFAIL(strdup(modname))); | 2000 | mod = new_module(modname); |
| 2001 | mod->skip = 1; | 2001 | mod->skip = 1; |
| 2002 | } | 2002 | } |
| 2003 | if (is_vmlinux(modname)) { | 2003 | if (is_vmlinux(modname)) { |
