git: 305c40dc552f - main - TCP BBR: simplify expression

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Sat, 04 Jan 2025 14:27:22 UTC
The branch main has been updated by tuexen:

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

commit 305c40dc552f9c150eacce95c181798031368cd9
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-01-04 14:25:01 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-01-04 14:25:01 +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
    MFC after:              1 week
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D48312
---
 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 9e1f83df4298..ed7e07861ebd 100644
--- a/sys/netinet/tcp_stacks/bbr.c
+++ b/sys/netinet/tcp_stacks/bbr.c
@@ -5553,7 +5553,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);