[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211210021713.423750-1-chi.minghao@zte.com.cn>
Date: Fri, 10 Dec 2021 02:17:13 +0000
From: cgel.zte@...il.com
To: mustafa.ismail@...el.com
Cc: shiraz.saleem@...el.com, dledford@...hat.com, jgg@...pe.ca,
linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org,
Minghao Chi <chi.minghao@....com.cn>,
Zeal Robot <zealci@....com.cm>
Subject: [PATCH hw-next] infiniband/hw:remove unneeded variable
From: Minghao Chi <chi.minghao@....com.cn>
Return status directly from function called.
Reported-by: Zeal Robot <zealci@....com.cm>
Signed-off-by: Minghao Chi <chi.minghao@....com.cn>
---
drivers/infiniband/hw/irdma/uk.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/infiniband/hw/irdma/uk.c b/drivers/infiniband/hw/irdma/uk.c
index 57a9444e9ea7..fe2ba1dd1b03 100644
--- a/drivers/infiniband/hw/irdma/uk.c
+++ b/drivers/infiniband/hw/irdma/uk.c
@@ -244,7 +244,6 @@ __le64 *irdma_qp_get_next_send_wqe(struct irdma_qp_uk *qp, u32 *wqe_idx,
*/
__le64 *irdma_qp_get_next_recv_wqe(struct irdma_qp_uk *qp, u32 *wqe_idx)
{
- __le64 *wqe;
enum irdma_status_code ret_code;
if (IRDMA_RING_FULL_ERR(qp->rq_ring))
@@ -257,9 +256,8 @@ __le64 *irdma_qp_get_next_recv_wqe(struct irdma_qp_uk *qp, u32 *wqe_idx)
if (!*wqe_idx)
qp->rwqe_polarity = !qp->rwqe_polarity;
/* rq_wqe_size_multiplier is no of 32 byte quanta in one rq wqe */
- wqe = qp->rq_base[*wqe_idx * qp->rq_wqe_size_multiplier].elem;
- return wqe;
+ return qp->rq_base[*wqe_idx * qp->rq_wqe_size_multiplier].elem;
}
/**
--
2.25.1
Powered by blists - more mailing lists