mptcp: add mptcp_destroy_common helper
authorGeliang Tang <geliangtang@gmail.com>
Thu, 24 Sep 2020 00:29:57 +0000 (08:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2020 02:58:34 +0000 (19:58 -0700)
commit5c8c1640956e59797f838fb18495e3d3fb964205
tree8279cc18cd89e3a121242ffa46aa9f0722b9772d
parent7a7e52e38a40f4f6ce8f06da601556a7669cf999
mptcp: add mptcp_destroy_common helper

This patch added a new helper named mptcp_destroy_common containing the
shared code between mptcp_destroy() and mptcp_sock_destruct().

Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c