diff mbox series

[v1] drivers: hw: Remove duplicate assignments

Message ID 20230705031849.2443-1-duminjie@vivo.com (mailing list archive)
State Accepted
Headers show
Series [v1] drivers: hw: Remove duplicate assignments | expand

Commit Message

Minjie Du July 5, 2023, 3:18 a.m. UTC
make iwqp->ietf_mem.va avoid double assignment.

Signed-off-by: Minjie Du <duminjie@vivo.com>
---
 drivers/infiniband/hw/irdma/cm.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Leon Romanovsky July 19, 2023, 9:51 a.m. UTC | #1
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,
diff mbox series

Patch

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;
 	}
 }