From: Geliang Tang <tanggeliang@kylinos.cn>
Drop ASSERT_OK() and ASSERT_OK_PTR() since endpoint_init() or
sched_init() may fail.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
tools/testing/selftests/bpf/prog_tests/mptcp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/bpf/prog_tests/mptcp.c b/tools/testing/selftests/bpf/prog_tests/mptcp.c
index a6afced3ca82..91bad33b0c72 100644
--- a/tools/testing/selftests/bpf/prog_tests/mptcp.c
+++ b/tools/testing/selftests/bpf/prog_tests/mptcp.c
@@ -457,7 +457,7 @@ static struct nstoken *sched_init(char *flags, char *sched)
if (!ASSERT_OK_PTR(nstoken, "create_netns"))
return NULL;
- if (!ASSERT_OK(endpoint_init("subflow"), "endpoint_init"))
+ if (endpoint_init("subflow"))
goto fail;
SYS(fail, "ip netns exec %s sysctl -qw net.mptcp.scheduler=%s", NS_TEST, sched);
@@ -519,7 +519,7 @@ static void test_default(void)
struct nstoken *nstoken;
nstoken = sched_init("subflow", "default");
- if (!ASSERT_OK_PTR(nstoken, "sched_init:default"))
+ if (!nstoken)
goto fail;
send_data_and_verify("default", WITH_DATA, WITH_DATA);
--
2.43.0