From: Mat Martineau <martineau@kernel.org>
To: "Matthieu Baerts (NGI0)" <matttbe@kernel.org>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-net v2 2/3] mptcp: pm: remove unused ret value to set flags
Date: Tue, 21 Jan 2025 15:00:11 -0800 (PST) [thread overview]
Message-ID: <60182b35-e847-8766-cc9b-9c53841bdd3d@kernel.org> (raw)
In-Reply-To: <20250117-mptcp-issue-540-v2-2-a194740fb380@kernel.org>
On Fri, 17 Jan 2025, Matthieu Baerts (NGI0) wrote:
> The returned value is not used, it can then be dropped.
>
> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Thanks Matthieu
Reviewed-by: Mat Martineau <martineau@kernel.org>
> ---
> net/mptcp/pm_netlink.c | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c
> index 99705a9c2238c6be96e320e8cd1d12bfa0e0e7f0..ff1e5695dc1db5e32d5f45bef7cf22e43aea0ef1 100644
> --- a/net/mptcp/pm_netlink.c
> +++ b/net/mptcp/pm_netlink.c
> @@ -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;
> @@ -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);
> @@ -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,
>
> --
> 2.47.1
>
>
>
next prev parent reply other threads:[~2025-01-21 23:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-17 9:34 [PATCH mptcp-net v2 0/3] mptcp: pm: only set fullmesh for subflow endp Matthieu Baerts (NGI0)
2025-01-17 9:34 ` [PATCH mptcp-net v2 1/3] " Matthieu Baerts (NGI0)
2025-01-21 22:59 ` Mat Martineau
2025-01-22 12:22 ` Matthieu Baerts
2025-01-17 9:34 ` [PATCH mptcp-net v2 2/3] mptcp: pm: remove unused ret value to set flags Matthieu Baerts (NGI0)
2025-01-21 23:00 ` Mat Martineau [this message]
2025-01-17 9:34 ` [PATCH mptcp-net v2 3/3] mptcp: pm: change to fullmesh only for 'subflow' Matthieu Baerts (NGI0)
2025-01-21 23:40 ` Mat Martineau
2025-01-22 12:14 ` Matthieu Baerts
2025-01-17 10:46 ` [PATCH mptcp-net v2 0/3] mptcp: pm: only set fullmesh for subflow endp MPTCP CI
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=60182b35-e847-8766-cc9b-9c53841bdd3d@kernel.org \
--to=martineau@kernel.org \
--cc=matttbe@kernel.org \
--cc=mptcp@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox