mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 18:23:53 +08:00
[TCP]: Kill warning in tcp_clean_rtx_queue().
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>
This commit is contained in:
parent
2473ffe3ca
commit
80246ab36e
@ -2259,7 +2259,7 @@ static int tcp_clean_rtx_queue(struct sock *sk, __s32 *seq_rtt_p)
|
|||||||
u32 pkts_acked = 0;
|
u32 pkts_acked = 0;
|
||||||
void (*rtt_sample)(struct sock *sk, u32 usrtt)
|
void (*rtt_sample)(struct sock *sk, u32 usrtt)
|
||||||
= icsk->icsk_ca_ops->rtt_sample;
|
= 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)) &&
|
while ((skb = skb_peek(&sk->sk_write_queue)) &&
|
||||||
skb != sk->sk_send_head) {
|
skb != sk->sk_send_head) {
|
||||||
|
Loading…
Reference in New Issue
Block a user