From 114b0389b6713573760c3f9219fbe169bb750c66 Mon Sep 17 00:00:00 2001 From: Geliang Tang Date: Thu, 1 Aug 2024 21:00:38 +0800 Subject: [PATCH] Squash to "selftests/bpf: Add bpf_first scheduler & test" Drop CHECK() since sched_init() may fail. Signed-off-by: Geliang Tang --- tools/testing/selftests/bpf/prog_tests/mptcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/prog_tests/mptcp.c b/tools/testing/selftests/bpf/prog_tests/mptcp.c index 91bad33b0c728f..63722412f847f5 100644 --- a/tools/testing/selftests/bpf/prog_tests/mptcp.c +++ b/tools/testing/selftests/bpf/prog_tests/mptcp.c @@ -546,7 +546,7 @@ static void test_bpf_sched(struct bpf_object *obj, char *sched, return; nstoken = sched_init("subflow", strcat(bpf_sched, sched)); - if (CHECK(!nstoken, sched, "sched_init: %d\n", errno)) + if (!nstoken) goto fail; send_data_and_verify(sched, addr1, addr2);