summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAxel Rasmussen <axelrasmussen@google.com>2022-03-24 15:39:29 -0700
committerShuah Khan <skhan@linuxfoundation.org>2022-04-04 13:32:53 -0600
commit187816d07729ff88e75d84efbc668642106cebf3 (patch)
tree935fad042167c073327fd301453a206aa52f70c9 /tools
parent52035628fae646269b1379417926fa3d60ef87d0 (diff)
downloadlinux-stable-187816d07729ff88e75d84efbc668642106cebf3.tar.gz
linux-stable-187816d07729ff88e75d84efbc668642106cebf3.tar.bz2
linux-stable-187816d07729ff88e75d84efbc668642106cebf3.zip
selftests: fix an unused variable warning in pidfd selftest
I fixed a few warnings like this in commit e2aa5e650b07 ("selftests: fixup build warnings in pidfd / clone3 tests"), but I missed this one by mistake. Since this variable is unused, remove it. Signed-off-by: Axel Rasmussen <axelrasmussen@google.com> Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/pidfd/pidfd_wait.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/pidfd/pidfd_wait.c b/tools/testing/selftests/pidfd/pidfd_wait.c
index 17999e082aa7..070c1c876df1 100644
--- a/tools/testing/selftests/pidfd/pidfd_wait.c
+++ b/tools/testing/selftests/pidfd/pidfd_wait.c
@@ -95,7 +95,6 @@ TEST(wait_states)
.flags = CLONE_PIDFD | CLONE_PARENT_SETTID,
.exit_signal = SIGCHLD,
};
- int ret;
pid_t pid;
siginfo_t info = {
.si_signo = 0,