summaryrefslogtreecommitdiffstats
path: root/net/mptcp/options.c
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2021-04-02 01:19:43 +0200
committerDavid S. Miller <davem@davemloft.net>2021-04-02 23:21:50 +0200
commit781bf13d4f3b033002f7f6728ac0b0d1ebe8f176 (patch)
treea9a17ec3e75ecb6538ea9641c4e714e79b563a83 /net/mptcp/options.c
parentmptcp: add active MPC mibs (diff)
downloadlinux-781bf13d4f3b033002f7f6728ac0b0d1ebe8f176.tar.xz
linux-781bf13d4f3b033002f7f6728ac0b0d1ebe8f176.zip
mptcp: remove unneeded check on first subflow
Currently we explicitly check for the first subflow being NULL in a couple of places, even if we don't need any special actions in such scenario. Just drop the unneeded checks, to avoid confusion. Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/options.c')
-rw-r--r--net/mptcp/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/options.c b/net/mptcp/options.c
index 69cafaacc31b..68361d28dc67 100644
--- a/net/mptcp/options.c
+++ b/net/mptcp/options.c
@@ -952,7 +952,7 @@ bool mptcp_update_rcv_data_fin(struct mptcp_sock *msk, u64 data_fin_seq, bool us
* should match. If they mismatch, the peer is misbehaving and
* we will prefer the most recent information.
*/
- if (READ_ONCE(msk->rcv_data_fin) || !READ_ONCE(msk->first))
+ if (READ_ONCE(msk->rcv_data_fin))
return false;
WRITE_ONCE(msk->rcv_data_fin_seq,