Fix

file_stressor.c:112:9: error: unused variable 'pid_self'

by dropping the unused variable.

Fixes: aab154a442f9b ("selftests: add file SLAB_TYPESAFE_BY_RCU recycling 
stressor")
Cc: Christian Brauner <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
---
 tools/testing/selftests/filesystems/file_stressor.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/testing/selftests/filesystems/file_stressor.c 
b/tools/testing/selftests/filesystems/file_stressor.c
index 01dd89f8e52f..4f314270298d 100644
--- a/tools/testing/selftests/filesystems/file_stressor.c
+++ b/tools/testing/selftests/filesystems/file_stressor.c
@@ -109,8 +109,6 @@ FIXTURE_TEARDOWN(file_stressor)
 TEST_F_TIMEOUT(file_stressor, slab_typesafe_by_rcu, 900 * 2)
 {
        for (int i = 0; i < self->nr_procs; i++) {
-               pid_t pid_self;
-
                self->pids_openers[i] = fork();
                ASSERT_GE(self->pids_openers[i], 0);
 
-- 
2.43.0


Reply via email to