diff options
author | Lucas De Marchi <lucas.de.marchi@gmail.com> | 2022-06-03 13:49:02 -0700 |
---|---|---|
committer | Lucas De Marchi <lucas.de.marchi@gmail.com> | 2022-06-26 23:21:44 -0700 |
commit | 6f7ab21645694b01e45bae8d8740004f53736c82 (patch) | |
tree | 1812b5997ef6d5216e547438477645bbf35c90bf | |
parent | 07bf5e1520ebf520a65f350a99d6a7f28c482ab5 (diff) | |
download | kmod-6f7ab21645694b01e45bae8d8740004f53736c82.tar.gz kmod-6f7ab21645694b01e45bae8d8740004f53736c82.tar.bz2 kmod-6f7ab21645694b01e45bae8d8740004f53736c82.zip |
modprobe: re-use modname variable
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
-rw-r--r-- | tools/modprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/modprobe.c b/tools/modprobe.c index 830c667..a825fb5 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; |