RDMA/bnxt_re: Remove redundant bnxt_qplib_disable_nq() call
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 14 Nov 2017 12:50:56 +0000 (18:20 +0530)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 13 Dec 2017 17:35:31 +0000 (10:35 -0700)
The bnxt_qplib_disable_nq() call is redundant as it occurs
after 'goto fail' and hence it called twice. Remove it.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/qplib_fp.c

index 61764f7aa79b5eeb9515027dcf04e4d5cb09b76b..eb7195c20b88f06761b983e491d989eeebd55005 100644 (file)
@@ -410,7 +410,6 @@ int bnxt_qplib_enable_nq(struct pci_dev *pdev, struct bnxt_qplib_nq *nq,
        if (rc) {
                dev_err(&nq->pdev->dev,
                        "Failed to request IRQ for NQ: %#x", rc);
-               bnxt_qplib_disable_nq(nq);
                goto fail;
        }