]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests/memfd: remove unused variable 'sig' in fuse_test
authorKonstantin Khorenko <khorenko@virtuozzo.com>
Sun, 24 May 2026 19:35:57 +0000 (22:35 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jun 2026 21:45:06 +0000 (14:45 -0700)
  fuse_test.c: In function 'sealing_thread_fn':
  fuse_test.c:165:13: warning: unused variable 'sig' [-Wunused-variable]
    165 |         int sig, r;
        |             ^~~

Remove unused 'sig' to fix -Wunused-variable warning.

Link: https://lore.kernel.org/20260524193732.48853-3-eva.kurchatova@virtuozzo.com
Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
Cc: Aristeu Rozanski <aris@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/memfd/fuse_test.c

index dbc171a3806db51de79e100970ae1f4733acc72d..510056c1b0d07439597fc67856234c64b8e1e38f 100644 (file)
@@ -162,7 +162,7 @@ static void *global_p = NULL;
 
 static int sealing_thread_fn(void *arg)
 {
-       int sig, r;
+       int r;
 
        /*
         * This thread first waits 200ms so any pending operation in the parent