Skip to content

Commit

Permalink
mptcp: pm: remove unused ret value to set flags
Browse files Browse the repository at this point in the history
The returned value is not used, it can then be dropped.

Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
matttbe authored and Patchew Applier committed Jan 17, 2025
1 parent 44ea808 commit 636e03e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions net/mptcp/pm_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1922,13 +1922,11 @@ static void mptcp_pm_nl_fullmesh(struct mptcp_sock *msk,
spin_unlock_bh(&msk->pm.lock);
}

static int mptcp_nl_set_flags(struct net *net,
struct mptcp_addr_info *addr,
u8 bkup, u8 changed)
static void mptcp_nl_set_flags(struct net *net, struct mptcp_addr_info *addr,
u8 bkup, u8 changed)
{
long s_slot = 0, s_num = 0;
struct mptcp_sock *msk;
int ret = -EINVAL;

while ((msk = mptcp_token_iter_next(net, &s_slot, &s_num)) != NULL) {
struct sock *sk = (struct sock *)msk;
Expand All @@ -1938,7 +1936,7 @@ static int mptcp_nl_set_flags(struct net *net,

lock_sock(sk);
if (changed & MPTCP_PM_ADDR_FLAG_BACKUP)
ret = mptcp_pm_nl_mp_prio_send_ack(msk, addr, NULL, bkup);
mptcp_pm_nl_mp_prio_send_ack(msk, addr, NULL, bkup);
if (changed & MPTCP_PM_ADDR_FLAG_FULLMESH)
mptcp_pm_nl_fullmesh(msk, addr);
release_sock(sk);
Expand All @@ -1948,7 +1946,7 @@ static int mptcp_nl_set_flags(struct net *net,
cond_resched();
}

return ret;
return;
}

int mptcp_pm_nl_set_flags(struct mptcp_pm_addr_entry *local,
Expand Down

0 comments on commit 636e03e

Please sign in to comment.