Remove the initialization for interval_msec and tend_msec. They are set
on the first iteration... Assuming the user has set non-zero wait time.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/361
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
static int rmmod_do_remove_module(struct kmod_module *mod)
{
const char *modname = kmod_module_get_name(mod);
- unsigned long long interval_msec = 0, t0_msec = 0, tend_msec = 0;
+ unsigned long long interval_msec, t0_msec = 0, tend_msec;
int flags = 0, err;
SHOW("rmmod %s\n", modname);