2023-07-05 03:39:44

by Minjie Du

[permalink] [raw]
Subject: [PATCH v1] drivers: hw: Remove duplicate assignments

make iwqp->ietf_mem.va avoid double assignment.

Signed-off-by: Minjie Du <[email protected]>
---
drivers/infiniband/hw/irdma/cm.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/infiniband/hw/irdma/cm.c b/drivers/infiniband/hw/irdma/cm.c
index 70009b970..a65dad5a8 100644
--- a/drivers/infiniband/hw/irdma/cm.c
+++ b/drivers/infiniband/hw/irdma/cm.c
@@ -3577,7 +3577,6 @@ void irdma_free_lsmm_rsrc(struct irdma_qp *iwqp)
iwqp->ietf_mem.size, iwqp->ietf_mem.va,
iwqp->ietf_mem.pa);
iwqp->ietf_mem.va = NULL;
- iwqp->ietf_mem.va = NULL;
}
}

--
2.39.0



2023-07-19 10:17:09

by Leon Romanovsky

[permalink] [raw]
Subject: Re: [PATCH v1] drivers: hw: Remove duplicate assignments


On Wed, 05 Jul 2023 11:18:49 +0800, Minjie Du wrote:
> make iwqp->ietf_mem.va avoid double assignment.
>
>

Applied, thanks!

[1/1] drivers: hw: Remove duplicate assignments
https://git.kernel.org/rdma/rdma/c/58259a2ec13d32

Best regards,
--
Leon Romanovsky <[email protected]>