]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[TCP]: Remove superflushious skb == write_queue_tail() check
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Wed, 16 Apr 2008 03:36:55 +0000 (20:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Apr 2008 03:36:55 +0000 (20:36 -0700)
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>
net/ipv4/tcp_output.c

index 90270cbdf42cccbc420cf7b65230c27ca9634b76..debf235816067cc8a268b015c9adbae851a538a1 100644 (file)
@@ -1057,7 +1057,7 @@ static unsigned int tcp_mss_split_point(struct sock *sk, struct sk_buff *skb,
 
        needed = min(skb->len, window);
 
-       if (skb == tcp_write_queue_tail(sk) && cwnd_len <= needed)
+       if (cwnd_len <= needed)
                return cwnd_len;
 
        return needed - needed % mss_now;