git: c28fefe1dc44 - main - TCP BBR: remove dead code

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Mon, 06 Jan 2025 19:43:06 UTC
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=c28fefe1dc44b69743dd18d038440da38a2867a7

commit c28fefe1dc44b69743dd18d038440da38a2867a7
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-01-06 19:40:33 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-01-06 19:40:33 +0000

    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
---
 sys/netinet/tcp_stacks/bbr.c | 3 ---
 1 file changed, 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);