mptcp: cleanup subflow_finish_connect()
authorPaolo Abeni <pabeni@redhat.com>
Thu, 23 Jul 2020 11:02:33 +0000 (13:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 18:47:24 +0000 (11:47 -0700)
commitfa25e815d963115eb06036a8f6a50e724bc259e2
treef23fc8a10c046f4634ea10984793dc68f449d8fb
parentb93df08ccda326ef89a6e80fb796588b9a30a980
mptcp: cleanup subflow_finish_connect()

The mentioned function has several unneeded branches,
handle each case - MP_CAPABLE, MP_JOIN, fallback -
under a single conditional and drop quite a bit of
duplicate code.

Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Tested-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/subflow.c