modprobe: re-use modname variable

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
This commit is contained in:
Lucas De Marchi 2022-06-03 13:49:02 -07:00
parent 07bf5e1520
commit 6f7ab21645

View File

@ -324,7 +324,7 @@ static int rmmod_do_remove_module(struct kmod_module *mod)
const char *modname = kmod_module_get_name(mod);
int flags = 0, err;
SHOW("rmmod %s\n", kmod_module_get_name(mod));
SHOW("rmmod %s\n", modname);
if (dry_run)
return 0;