diff options
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r-- | net/ipv4/tcp_timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index 40a41f077981..a516d1e399df 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c | |||
@@ -171,13 +171,13 @@ static int tcp_write_timeout(struct sock *sk) | |||
171 | { | 171 | { |
172 | struct inet_connection_sock *icsk = inet_csk(sk); | 172 | struct inet_connection_sock *icsk = inet_csk(sk); |
173 | int retry_until; | 173 | int retry_until; |
174 | bool do_reset, syn_set = 0; | 174 | bool do_reset, syn_set = false; |
175 | 175 | ||
176 | if ((1 << sk->sk_state) & (TCPF_SYN_SENT | TCPF_SYN_RECV)) { | 176 | if ((1 << sk->sk_state) & (TCPF_SYN_SENT | TCPF_SYN_RECV)) { |
177 | if (icsk->icsk_retransmits) | 177 | if (icsk->icsk_retransmits) |
178 | dst_negative_advice(sk); | 178 | dst_negative_advice(sk); |
179 | retry_until = icsk->icsk_syn_retries ? : sysctl_tcp_syn_retries; | 179 | retry_until = icsk->icsk_syn_retries ? : sysctl_tcp_syn_retries; |
180 | syn_set = 1; | 180 | syn_set = true; |
181 | } else { | 181 | } else { |
182 | if (retransmits_timed_out(sk, sysctl_tcp_retries1, 0, 0)) { | 182 | if (retransmits_timed_out(sk, sysctl_tcp_retries1, 0, 0)) { |
183 | /* Black hole detection */ | 183 | /* Black hole detection */ |