diff options
author | Eric Dumazet <edumazet@google.com> | 2019-12-23 12:27:51 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-27 16:29:14 -0800 |
commit | 35821fc2b41c51161e503bade3630603668dd3af (patch) | |
tree | d140df406ebe3399e08eb0b9462807958ec87a35 /block | |
parent | 473900a504e510cf9175876de8892ad1e3e7efab (diff) | |
download | lwn-35821fc2b41c51161e503bade3630603668dd3af.tar.gz lwn-35821fc2b41c51161e503bade3630603668dd3af.zip |
tcp_cubic: remove one conditional from hystart_update()
If we initialize ca->curr_rtt to ~0U, we do not need to test
for zero value in hystart_update()
We only read ca->curr_rtt if at least HYSTART_MIN_SAMPLES have
been processed, and thus ca->curr_rtt will have a sane value.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions