Skip to content

Commit

Permalink
Squash to "selftests/bpf: Add bpf_first scheduler & test"
Browse files Browse the repository at this point in the history
Drop CHECK() since sched_init() may fail.

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
Geliang Tang authored and intel-lab-lkp committed Aug 2, 2024
1 parent b98a172 commit 114b038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/bpf/prog_tests/mptcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 114b038

Please sign in to comment.