]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/ipv4/tcp_input.c
tcp: fix tcp_fastretrans_alert warning
[mirror_ubuntu-artful-kernel.git] / net / ipv4 / tcp_input.c
index e92e5dbcb3d622378492e8d06f31aa26f3cccde1..ffe96de8a079c1ecfe3d7b9ff1d36f439ce6dbc9 100644 (file)
@@ -2613,7 +2613,6 @@ void tcp_simple_retransmit(struct sock *sk)
        struct tcp_sock *tp = tcp_sk(sk);
        struct sk_buff *skb;
        unsigned int mss = tcp_current_mss(sk);
-       u32 prior_lost = tp->lost_out;
 
        tcp_for_write_queue(skb, sk) {
                if (skb == tcp_send_head(sk))
@@ -2630,7 +2629,7 @@ void tcp_simple_retransmit(struct sock *sk)
 
        tcp_clear_retrans_hints_partial(tp);
 
-       if (prior_lost == tp->lost_out)
+       if (!tp->lost_out)
                return;
 
        if (tcp_is_reno(tp))