]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
tools/depmod: remove set but unused timeval
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 24 May 2025 15:03:08 +0000 (16:03 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 30 May 2025 02:16:00 +0000 (21:16 -0500)
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>
tools/depmod.c

index f9faecba0ff33f71266108394eea455dbf887e20..60271dca53b4c08d324a5ba0ba7035f094ac3073 100644 (file)
@@ -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;