diff mbox series

[v1] drivers: qedr: remove duplicate assignments

Message ID 20230705075225.11954-1-duminjie@vivo.com (mailing list archive)
State Superseded
Headers show
Series [v1] drivers: qedr: remove duplicate assignments | expand

Commit Message

Minjie Du July 5, 2023, 7:52 a.m. UTC
make dev->gsi_rqcq->cq_type avoid double assignment.

Signed-off-by: Minjie Du <duminjie@vivo.com>
---
 drivers/infiniband/hw/qedr/qedr_roce_cm.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/qedr/qedr_roce_cm.c b/drivers/infiniband/hw/qedr/qedr_roce_cm.c
index 05307c148..859f66a51 100644
--- a/drivers/infiniband/hw/qedr/qedr_roce_cm.c
+++ b/drivers/infiniband/hw/qedr/qedr_roce_cm.c
@@ -354,7 +354,6 @@  int qedr_create_gsi_qp(struct qedr_dev *dev, struct ib_qp_init_attr *attrs,
 	/* the GSI CQ is handled by the driver so remove it from the FW */
 	qedr_destroy_gsi_cq(dev, attrs);
 	dev->gsi_rqcq->cq_type = QEDR_CQ_TYPE_GSI;
-	dev->gsi_rqcq->cq_type = QEDR_CQ_TYPE_GSI;
 
 	DP_DEBUG(dev, QEDR_MSG_GSI, "created GSI QP %p\n", qp);