]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe6ae57debb32d0e325a1d8243a668f83fd2dfb3
treef23fc8a10c046f4634ea10984793dc68f449d8fb
parent084e8b62d5f100c6569b5904e70d49a2451378b3
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