diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2025-01-01 17:39:23 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2025-01-01 17:39:23 +0000 |
commit | 1781324db2bc22a971a33c5a063036b2775055c6 (patch) | |
tree | 57f7067efb5db1dc3e7ccf3083b98f17a88e66c2 | |
parent | 4c0435d919b1059a449d97d74abc251c6f526588 (diff) |
TCP BBR: remove code which is never executed
USEC_2_TICKS() returns at least 1.
Reviewed by: rrs
CID: 1523775
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D4827
-rw-r--r-- | sys/netinet/tcp_stacks/bbr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c index 3c5864007986..c46a1711c34a 100644 --- a/sys/netinet/tcp_stacks/bbr.c +++ b/sys/netinet/tcp_stacks/bbr.c @@ -6329,8 +6329,6 @@ tcp_bbr_xmit_timer_commit(struct tcp_bbr *bbr, struct tcpcb *tp, uint32_t cts) } /* Round it up */ rtt_ticks = USEC_2_TICKS((rtt + (USECS_IN_MSEC - 1))); - if (rtt_ticks == 0) - rtt_ticks = 1; if (tp->t_srtt != 0) { /* * srtt is stored as fixed point with 5 bits after the |