Skip to content

Commit

Permalink
selftests: fix an unused variable warning in pidfd selftest
Browse files Browse the repository at this point in the history
I fixed a few warnings like this in commit e2aa5e6
("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>
  • Loading branch information
Axel Rasmussen authored and Shuah Khan committed Apr 4, 2022
1 parent 5203562 commit 187816d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/testing/selftests/pidfd/pidfd_wait.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 187816d

Please sign in to comment.