git: 4f5788dfca2b - stable/13 - TCP BBR: simplify expression
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Feb 2025 20:49:52 UTC
The branch stable/13 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=4f5788dfca2be357dd3ac7b27493bf08d4351e63
commit 4f5788dfca2be357dd3ac7b27493bf08d4351e63
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-01-04 14:25:01 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-02-05 20:35:00 +0000
TCP BBR: simplify expression
There is no need to check partially for bbr->r_ctl.crte being NULL,
since this can't be true in this path.
No functional change intended.
Reviewed by: rrs
CID: 1523810
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D48312
(cherry picked from commit 305c40dc552f9c150eacce95c181798031368cd9)
---
sys/netinet/tcp_stacks/bbr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c
index a8c2ad547a5d..12152fbddcd9 100644
--- a/sys/netinet/tcp_stacks/bbr.c
+++ b/sys/netinet/tcp_stacks/bbr.c
@@ -5586,7 +5586,7 @@ lost_rate:
bbr_type_log_hdwr_pacing(bbr,
bbr->r_ctl.crte->ptbl->rs_ifp,
rate,
- ((bbr->r_ctl.crte == NULL) ? 0 : bbr->r_ctl.crte->rate),
+ bbr->r_ctl.crte->rate,
__LINE__,
cts,
error);