projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2473ffe
)
[TCP]: Kill warning in tcp_clean_rtx_queue().
author
David S. Miller
<davem@sunset.davemloft.net>
Tue, 3 Oct 2006 23:49:53 +0000
(16:49 -0700)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/tcp_input.c
b/net/ipv4/tcp_input.c
index 3f884cea14ff439651b876ffce4f351289640681..cf06accbe687a96a21bf5098163b4c8ddb662818 100644
(file)
--- a/
net/ipv4/tcp_input.c
+++ b/
net/ipv4/tcp_input.c
@@
-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) {