aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 733f48593ec3..4aefa0b42c2e 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -1213,7 +1213,7 @@ new_segment:
1213wait_for_sndbuf: 1213wait_for_sndbuf:
1214 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); 1214 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags);
1215wait_for_memory: 1215wait_for_memory:
1216 if (copied && likely(!tp->repair)) 1216 if (copied)
1217 tcp_push(sk, flags & ~MSG_MORE, mss_now, TCP_NAGLE_PUSH); 1217 tcp_push(sk, flags & ~MSG_MORE, mss_now, TCP_NAGLE_PUSH);
1218 1218
1219 if ((err = sk_stream_wait_memory(sk, &timeo)) != 0) 1219 if ((err = sk_stream_wait_memory(sk, &timeo)) != 0)
@@ -1224,7 +1224,7 @@ wait_for_memory:
1224 } 1224 }
1225 1225
1226out: 1226out:
1227 if (copied && likely(!tp->repair)) 1227 if (copied)
1228 tcp_push(sk, flags, mss_now, tp->nonagle); 1228 tcp_push(sk, flags, mss_now, tp->nonagle);
1229 release_sock(sk); 1229 release_sock(sk);
1230 return copied + copied_syn; 1230 return copied + copied_syn;