]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
modprobe: re-use modname variable
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 3 Jun 2022 20:49:02 +0000 (13:49 -0700)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 27 Jun 2022 06:21:44 +0000 (23:21 -0700)
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/modprobe.c

index 830c667b76770e39e8d7195e9b15c91f9e2e562c..a825fb576abf6113458cff302e5c98d2442a2fae 100644 (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;