mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
mptcp: use mptcp_for_each_subflow in mptcp_stream_accept
Use mptcp_for_each_subflow in mptcp_stream_accept instead of open-coding. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Acked-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ee494f42a3
commit
190f8b060e
@ -2249,7 +2249,7 @@ static int mptcp_stream_accept(struct socket *sock, struct socket *newsock,
|
||||
* This is needed so NOSPACE flag can be set from tcp stack.
|
||||
*/
|
||||
__mptcp_flush_join_list(msk);
|
||||
list_for_each_entry(subflow, &msk->conn_list, node) {
|
||||
mptcp_for_each_subflow(msk, subflow) {
|
||||
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
|
||||
|
||||
if (!ssk->sk_socket)
|
||||
|
Loading…
Reference in New Issue
Block a user