mptcp: remove unneeded check on first subflow
authorPaolo Abeni <pabeni@redhat.com>
Thu, 1 Apr 2021 23:19:43 +0000 (16:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Apr 2021 21:21:50 +0000 (14:21 -0700)
commit781bf13d4f3b033002f7f6728ac0b0d1ebe8f176
treea9a17ec3e75ecb6538ea9641c4e714e79b563a83
parent5695eb8891f9eb5317ca0c3af7a773468524022d
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>
net/mptcp/options.c
net/mptcp/protocol.c