Skip to content

Commit

Permalink
[TCP]: Kill warning in tcp_clean_rtx_queue().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Oct 4, 2006
1 parent 2473ffe commit 80246ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 80246ab

Please sign in to comment.