[PATCH] common/cnxk: removed stale condition

skoteshwar at marvell.com skoteshwar at marvell.com
Thu Jun 15 08:31:21 CEST 2023


From: Satha Rao <skoteshwar at marvell.com>

Removed condition that doesn't have any effect on code flow.

Coverity issue: 385405
Fixes: 4d00b8c6a331 ("common/cnxk: allocate dynamic BPIDs")

Signed-off-by: Satha Rao <skoteshwar at marvell.com>
---
 drivers/common/cnxk/roc_nix_fc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/common/cnxk/roc_nix_fc.c b/drivers/common/cnxk/roc_nix_fc.c
index f79baf9..d8ca5f9 100644
--- a/drivers/common/cnxk/roc_nix_fc.c
+++ b/drivers/common/cnxk/roc_nix_fc.c
@@ -750,8 +750,6 @@ enum roc_nix_fc_mode
 	req->read = 0;
 
 	rc = mbox_process(mbox);
-	if (rc)
-		goto exit;
 exit:
 	mbox_put(mbox);
 	return rc;
-- 
1.8.3.1



More information about the dev mailing list