diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2008-04-15 23:36:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-15 23:36:55 -0400 |
commit | 17515408a15fa51c553e67c415502e785145cd7f (patch) | |
tree | 0aebcd0c357271b3b06a71d22796d5d323cbe230 /net/ipv4 | |
parent | b131dd5d659aaf287a3809473130c3ff5eddb71b (diff) |
[TCP]: Remove superflushious skb == write_queue_tail() check
Needed can only be more strict than what was checked by the
earlier common case check for non-tail skbs, thus
cwnd_len <= needed will never match in that case anyway.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 90270cbdf42c..debf23581606 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -1057,7 +1057,7 @@ static unsigned int tcp_mss_split_point(struct sock *sk, struct sk_buff *skb, | |||
1057 | 1057 | ||
1058 | needed = min(skb->len, window); | 1058 | needed = min(skb->len, window); |
1059 | 1059 | ||
1060 | if (skb == tcp_write_queue_tail(sk) && cwnd_len <= needed) | 1060 | if (cwnd_len <= needed) |
1061 | return cwnd_len; | 1061 | return cwnd_len; |
1062 | 1062 | ||
1063 | return needed - needed % mss_now; | 1063 | return needed - needed % mss_now; |