aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2025-01-06 19:40:33 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2025-01-06 19:40:33 +0000
commitc28fefe1dc44b69743dd18d038440da38a2867a7 (patch)
tree1846e77b0b5c04c37fbfc496a6658454d838f322
parentbb9525f30214e8b6c53c6cccd9e8f02e8f8e8c42 (diff)
TCP BBR: remove dead code
bw is unsigned and not zero. So it cannot be smaller than 1. No functional change intended. Reviewed by: rrs, cc CID: 1523791 MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D48323
-rw-r--r--sys/netinet/tcp_stacks/bbr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c
index 535766a0a1b0..97ff46f0b96b 100644
--- a/sys/netinet/tcp_stacks/bbr.c
+++ b/sys/netinet/tcp_stacks/bbr.c
@@ -2993,9 +2993,6 @@ use_initial_window:
/* We should not be at 0, go to the initial window then */
goto use_initial_window;
}
- if (bw < 1)
- /* Probably should panic */
- bw = 1;
if (bw < min_bw)
bw = min_bw;
return (bw);