From 07ce1ab9720dbc284d571daeca1ceba85953106c Mon Sep 17 00:00:00 2001 From: Geliang Tang Date: Wed, 15 Jan 2025 15:28:03 +0800 Subject: [PATCH] selftests/bpf: Drop cgroup_fd of run_mptcpify The parameter 'cgroup_fd' of run_mptcpify() is useless, drop it. Signed-off-by: Geliang Tang --- 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 1d68bbda3370f7..258587700187a0 100644 --- a/tools/testing/selftests/bpf/prog_tests/mptcp.c +++ b/tools/testing/selftests/bpf/prog_tests/mptcp.c @@ -283,7 +283,7 @@ static int verify_mptcpify(int server_fd, int client_fd) return err; } -static int run_mptcpify(int cgroup_fd) +static int run_mptcpify(void) { int server_fd, client_fd, err = 0; struct mptcpify *mptcpify_skel; @@ -336,7 +336,7 @@ static void test_mptcpify(void) if (!ASSERT_OK_PTR(netns, "netns_new")) goto fail; - ASSERT_OK(run_mptcpify(cgroup_fd), "run_mptcpify"); + ASSERT_OK(run_mptcpify(), "run_mptcpify"); fail: netns_free(netns);