From 5f55a879ef5ab4e67cf33efa90c03bc89ca97617 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sat, 24 May 2025 16:03:08 +0100 Subject: [PATCH] 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 --- tools/depmod.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.47.3