RDMA/qedr: Remove a duplicate assignment in qedr_create_gsi_qp()
authorMinjie Du <duminjie@vivo.com>
Wed, 5 Jul 2023 10:39:50 +0000 (18:39 +0800)
committerLeon Romanovsky <leon@kernel.org>
Sun, 23 Jul 2023 07:51:07 +0000 (10:51 +0300)
Delete a duplicate statement from this function implementation.

Signed-off-by: Minjie Du <duminjie@vivo.com>
Link: https://lore.kernel.org/r/20230705103950.15225-1-duminjie@vivo.com
Acked-by: Alok Prasad <palok@marvell.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/qedr/qedr_roce_cm.c

index 05307c1..859f66a 100644 (file)
@@ -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);