From: Emil Velikov Date: Sat, 24 May 2025 15:03:08 +0000 (+0100) Subject: tools/depmod: remove set but unused timeval X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f55a879ef5ab4e67cf33efa90c03bc89ca97617;p=thirdparty%2Fkmod.git 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 Link: https://github.com/kmod-project/kmod/pull/358 Signed-off-by: Lucas De Marchi --- diff --git a/tools/depmod.c b/tools/depmod.c index f9faecba..60271dca 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -2585,9 +2585,6 @@ static int depmod_output(struct depmod *depmod, FILE *out) }; const char *dname = depmod->cfg->outdirname; int dfd, err = 0; - struct timeval tv; - - gettimeofday(&tv, NULL); if (out != NULL) dfd = -1;