Skip to content

Commit

Permalink
selftests/bpf: Drop cgroup_fd of run_mptcpify
Browse files Browse the repository at this point in the history
The parameter 'cgroup_fd' of run_mptcpify() is useless, drop it.

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
Geliang Tang authored and intel-lab-lkp committed Jan 15, 2025
1 parent 2358d68 commit 07ce1ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testing/selftests/bpf/prog_tests/mptcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 07ce1ab

Please sign in to comment.