]> err.no Git - linux-2.6/commitdiff
[TCP]: Kill warning in tcp_clean_rtx_queue().
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 3 Oct 2006 23:49:53 +0000 (16:49 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 4 Oct 2006 07:31:08 +0000 (00:31 -0700)
GCC can't tell we always initialize 'tv' in all the cases
we actually use it, so explicitly set it up with zeros.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c

index 3f884cea14ff439651b876ffce4f351289640681..cf06accbe687a96a21bf5098163b4c8ddb662818 100644 (file)
@@ -2259,7 +2259,7 @@ static int tcp_clean_rtx_queue(struct sock *sk, __s32 *seq_rtt_p)
        u32 pkts_acked = 0;
        void (*rtt_sample)(struct sock *sk, u32 usrtt)
                = icsk->icsk_ca_ops->rtt_sample;
-       struct timeval tv;
+       struct timeval tv = { .tv_sec = 0, .tv_usec = 0 };
 
        while ((skb = skb_peek(&sk->sk_write_queue)) &&
               skb != sk->sk_send_head) {