From: Geliang Tang <tanggeliang@kylinos.cn>
Drop CHECK() since sched_init() may fail.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
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 91bad33b0c72..63722412f847 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);
--
2.43.0