[PATCH] selftests/bpf: Removed redundant variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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







[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux