mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
fe8d0a4108
commit
0fa3a88cfd
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue