[PATCH] selftests/bpf: Removed redundant variable

From: Zhu Jun
Date: Thu Oct 10 2024 - 02:46:22 EST


The error check is no longer needed for this test case,
simplifying the code.

Signed-off-by: Zhu Jun <zhujun2@xxxxxxxxxxxxxxxxxxxx>
---
tools/testing/selftests/bpf/prog_tests/signal_pending.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/bpf/prog_tests/signal_pending.c b/tools/testing/selftests/bpf/prog_tests/signal_pending.c
index 70b49da5ca0a..8920fadb3aa9 100644
--- a/tools/testing/selftests/bpf/prog_tests/signal_pending.c
+++ b/tools/testing/selftests/bpf/prog_tests/signal_pending.c
@@ -36,7 +36,7 @@ static void test_signal_pending_by_type(enum bpf_prog_type prog_type)
err = setitimer(ITIMER_REAL, &timeo, NULL);
ASSERT_OK(err, "test-run-signal-timer");

- err = bpf_prog_test_run_opts(prog_fd, &topts);
+ bpf_prog_test_run_opts(prog_fd, &topts);
ASSERT_LE(topts.duration, 500000000 /* 500ms */,
"test-run-signal-duration");

--
2.17.1