RDMA/irdma: Remove the redundant variable
Subsystems (2)
PATCH 1/1 RDMA/irdma: Remove the redundant variable
From: Zhu Yanjun <[email protected]>
In the function irdma_puda_get_next_send_wqe, the variable wqe is not necessary. So remove it.
Signed-off-by Zhu Yanjun <[email protected]>
--- drivers/infiniband/hw/irdma/puda.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/infiniband/hw/irdma/puda.c +2 -5
@@ -193,7 +193,6 @@ static void irdma_puda_dele_buf(struct irdma_sc_dev *dev,static __le64 *irdma_puda_get_next_send_wqe (struct irdma_qp_uk *qp,u32 *wqe_idx) { -__le64 *wqe =NULL ;enum irdma_status_code ret_code =0 ; *wqe_idx =IRDMA_RING_CURRENT_HEAD (qp->sq_ring);
@@ -201,11 +200,9 @@ static __le64 *irdma_puda_get_next_send_wqe(struct irdma_qp_uk *qp, qp->swqe_polarity = !qp->swqe_polarity;IRDMA_RING_MOVE_HEAD (qp->sq_ring, ret_code);if (ret_code) -return wqe; - - wqe = qp->sq_base[*wqe_idx].elem; +return NULL ; -return wqe; +return qp->sq_base[*wqe_idx].elem; }/**
Signature · 1 line
2.27.0
Quoted 10 lines · Zhu Yanjun
From: Zhu Yanjun <[email protected]>
In the function
irdma_puda_get_next_send_wqe, the variable wqe is not necessary. So remove it.Signed-off-by Zhu Yanjun <[email protected]>--- drivers/infiniband/hw/irdma/puda.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
Thanks,
Reviewed-by Leon Romanovsky <[email protected]>
Quoted 10 lines · Zhu Yanjun
From: Zhu Yanjun <[email protected]>
In the function
irdma_puda_get_next_send_wqe, the variable wqe is not necessary. So remove it.Signed-off-by Zhu Yanjun <[email protected]>Reviewed-by Leon Romanovsky <[email protected]>--- drivers/infiniband/hw/irdma/puda.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
Applied to for-next, thanks
Jason