From: Arvind Yadav Date: Tue, 14 Nov 2017 12:50:56 +0000 (+0530) Subject: RDMA/bnxt_re: Remove redundant bnxt_qplib_disable_nq() call X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=302784729e7fb29d5888686fe83b42bb18f81ab8;p=openwrt%2Fstaging%2Fblogic.git RDMA/bnxt_re: Remove redundant bnxt_qplib_disable_nq() call 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 Signed-off-by: Jason Gunthorpe --- diff --git a/drivers/infiniband/hw/bnxt_re/qplib_fp.c b/drivers/infiniband/hw/bnxt_re/qplib_fp.c index 61764f7aa79b..eb7195c20b88 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_fp.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_fp.c @@ -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; }