mptcp: use mptcp_for_each_subflow in mptcp_close
authorGeliang Tang <geliangtang@gmail.com>
Fri, 16 Apr 2021 22:38:08 +0000 (15:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Apr 2021 00:10:40 +0000 (17:10 -0700)
commit442279154c73bc681e5346bdd1270a628dfdfdc7
tree4ac2215add7c9db2a6b0ffcb02f1d63481c82b7b
parentd96a838a7ce2772ed181f89becd79b72d267f93a
mptcp: use mptcp_for_each_subflow in mptcp_close

This patch used the macro helper mptcp_for_each_subflow() instead of
list_for_each_entry() in mptcp_close.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c