[PATCH v4 8/9] net/bnxt: remove unnecessary use of comma operator

Stephen Hemminger stephen at networkplumber.org
Mon Aug 18 18:18:13 CEST 2025


Should use semicolon here.

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 drivers/net/bnxt/tf_core/tf_msg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/bnxt/tf_core/tf_msg.c b/drivers/net/bnxt/tf_core/tf_msg.c
index f2d2de859c..645a4b1e66 100644
--- a/drivers/net/bnxt/tf_core/tf_msg.c
+++ b/drivers/net/bnxt/tf_core/tf_msg.c
@@ -385,7 +385,7 @@ tf_msg_session_qcfg(struct tf *tfp)
 	/* Populate the request */
 	req.fw_session_id = tfp_cpu_to_le_32(fw_session_id);
 
-	parms.tf_type = HWRM_TF_SESSION_QCFG,
+	parms.tf_type = HWRM_TF_SESSION_QCFG;
 	parms.req_data = (uint32_t *)&req;
 	parms.req_size = sizeof(req);
 	parms.resp_data = (uint32_t *)&resp;
@@ -1862,7 +1862,7 @@ tf_msg_get_version(struct bnxt *bp,
 	struct tfp_send_msg_parms parms = { 0 };
 
 	/* Populate the request */
-	parms.tf_type = HWRM_TF_VERSION_GET,
+	parms.tf_type = HWRM_TF_VERSION_GET;
 	parms.req_data = (uint32_t *)&req;
 	parms.req_size = sizeof(req);
 	parms.resp_data = (uint32_t *)&resp;
-- 
2.47.2



More information about the dev mailing list