tools/depmod: remove set but unused timeval
No longer needed since the introduction of tmpfile-util.
Fixes: aae48bc9 ("depmod: add tmpfile-util to generate temporary file")
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/358
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
diff --git a/tools/depmod.c b/tools/depmod.c
index f9faecb..60271dc 100644
--- a/tools/depmod.c
+++ b/tools/depmod.c
@@ -2585,9 +2585,6 @@
};
const char *dname = depmod->cfg->outdirname;
int dfd, err = 0;
- struct timeval tv;
-
- gettimeofday(&tv, NULL);
if (out != NULL)
dfd = -1;