git: 239170f29210 - main - cxgbe(4): Fix control flow issues reported by Coverity.

From: Navdeep Parhar <np_at_FreeBSD.org>
Date: Thu, 14 Apr 2022 07:21:17 UTC
The branch main has been updated by np:

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

commit 239170f29210a21a68284dc967e57ed8047fb2ba
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2022-04-14 07:17:36 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2022-04-14 07:17:36 +0000

    cxgbe(4): Fix control flow issues reported by Coverity.
    
    CID 1487932:  Control flow issues  (NESTING_INDENT_MISMATCH).
    The macro on this line expands into multiple statements, only the first
    of which is nested within the preceding parent while the rest are not.
    9828                    ulp_region(RX_TLS_KEY);
    
    Reported by:    Coverity (CID 1487932)
    Fixes:  f88b31885c4 cxgbe(4): meminfo should get the TLS region's limits from the hardware.
    MFC after:      3 days
    Sponsored by:   Chelsio Communications
---
 sys/dev/cxgbe/t4_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c
index eba79deeced3..b4069119c167 100644
--- a/sys/dev/cxgbe/t4_main.c
+++ b/sys/dev/cxgbe/t4_main.c
@@ -9824,8 +9824,9 @@ sysctl_meminfo(SYSCTL_HANDLER_ARGS)
 	ulp_region(RX_RQUDP);
 	ulp_region(RX_PBL);
 	ulp_region(TX_PBL);
-	if (sc->cryptocaps & FW_CAPS_CONFIG_TLSKEYS)
+	if (sc->cryptocaps & FW_CAPS_CONFIG_TLSKEYS) {
 		ulp_region(RX_TLS_KEY);
+	}
 #undef ulp_region
 
 	md->base = 0;