aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-11-14 18:20:56 +0530
committerJason Gunthorpe <jgg@mellanox.com>2017-12-13 10:35:31 -0700
commit302784729e7fb29d5888686fe83b42bb18f81ab8 (patch)
tree459c6c05b65f49d37ee62ce2c586f0af1c3dd8f1
parentIB/srp: replace custom implementation of hex2bin() (diff)
downloadlinux-dev-302784729e7fb29d5888686fe83b42bb18f81ab8.tar.xz
linux-dev-302784729e7fb29d5888686fe83b42bb18f81ab8.zip
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 <arvind.yadav.cs@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r--drivers/infiniband/hw/bnxt_re/qplib_fp.c1
1 files changed, 0 insertions, 1 deletions
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;
}