From: Lucas De Marchi Date: Fri, 3 Jun 2022 20:49:02 +0000 (-0700) Subject: modprobe: re-use modname variable X-Git-Tag: v30~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f7ab21645694b01e45bae8d8740004f53736c82;p=thirdparty%2Fkmod.git modprobe: re-use modname variable Signed-off-by: Lucas De Marchi --- diff --git a/tools/modprobe.c b/tools/modprobe.c index 830c667b..a825fb57 100644 --- a/tools/modprobe.c +++ b/tools/modprobe.c @@ -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;