All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-next 1/2] RDMA/bnxt_re: Remove incorrect  return check from slow path
@ 2023-06-16  6:16 Kashyap Desai
  2023-06-16  6:17 ` [PATCH for-next 2/2] RDMA/bnxt_re: refactor code around bnxt_qplib_map_rc Kashyap Desai
  2023-06-26 13:27 ` [PATCH for-next 1/2] RDMA/bnxt_re: Remove incorrect return check from slow path Jason Gunthorpe
  0 siblings, 2 replies; 4+ messages in thread
From: Kashyap Desai @ 2023-06-16  6:16 UTC (permalink / raw)
  To: linux-rdma; +Cc: dan.carpenter, Kashyap Desai, Selvin Xavier

[-- Attachment #1: Type: text/plain, Size: 1388 bytes --]

The patch 691eb7c6110f: "RDMA/bnxt_re: handle command
completions after driver detect a timedout" introduced code resulting in
below warning issued by the smatch static checker.

        drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:513 __bnxt_qplib_rcfw_send_message()
        warn: duplicate check 'rc' (previous on line 506)

Fix the warning by removing incorrect code block.

Fixes: 691eb7c6110f ("RDMA/bnxt_re: handle command completions after driver detect a timedout")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
---
 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/infiniband/hw/bnxt_re/qplib_rcfw.c b/drivers/infiniband/hw/bnxt_re/qplib_rcfw.c
index bb5aebafe162..30c6e865d691 100644
--- a/drivers/infiniband/hw/bnxt_re/qplib_rcfw.c
+++ b/drivers/infiniband/hw/bnxt_re/qplib_rcfw.c
@@ -503,12 +503,6 @@ static int __bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw,
 		rc = __wait_for_resp(rcfw, cookie);
 	else
 		rc = __poll_for_resp(rcfw, cookie);
-	if (rc) {
-		/* timed out */
-		dev_err(&rcfw->pdev->dev, "cmdq[%#x]=%#x timedout (%d)msec\n",
-			cookie, opcode, RCFW_CMD_WAIT_TIME_MS);
-		return rc;
-	}
 
 	if (rc) {
 		spin_lock_irqsave(&rcfw->cmdq.hwq.lock, flags);
-- 
2.27.0


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4212 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-26 13:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-16  6:16 [PATCH for-next 1/2] RDMA/bnxt_re: Remove incorrect return check from slow path Kashyap Desai
2023-06-16  6:17 ` [PATCH for-next 2/2] RDMA/bnxt_re: refactor code around bnxt_qplib_map_rc Kashyap Desai
2023-06-16  7:04   ` Dan Carpenter
2023-06-26 13:27 ` [PATCH for-next 1/2] RDMA/bnxt_re: Remove incorrect return check from slow path Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.