diff options
author | Hariprasad Kelam <hariprasad.kelam@gmail.com> | 2019-07-16 23:07:12 +0530 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-07-25 13:55:28 -0300 |
commit | cf167e5eb92c143ac2b0300ea65ed9f0ce572c3b (patch) | |
tree | 057f315079f82868521180bac0ec16a8944a55d5 /drivers/infiniband/hw/qedr/verbs.c | |
parent | 4cc315c53f959c5d71b96111a7d317f40771558e (diff) | |
download | lwn-cf167e5eb92c143ac2b0300ea65ed9f0ce572c3b.tar.gz lwn-cf167e5eb92c143ac2b0300ea65ed9f0ce572c3b.zip |
RDMA/qedr: Remove Unneeded variable rc
Fix the below warning reported by coccicheck:
drivers/infiniband/hw/qedr/verbs.c:2454:5-7: Unneeded variable: "rc".
Return "0" on line 2499
Link: https://lore.kernel.org/r/20190716173712.GA12949@hari-Inspiron-1545
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Acked-by: Michal Kalderon <michal.kalderon@marvell.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/qedr/verbs.c')
-rw-r--r-- | drivers/infiniband/hw/qedr/verbs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 27d90a84ea01..0c6a4bc848f5 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -2451,7 +2451,6 @@ int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) struct qedr_dev *dev = qp->dev; struct ib_qp_attr attr; int attr_mask = 0; - int rc = 0; DP_DEBUG(dev, QEDR_MSG_QP, "destroy qp: destroying %p, qp type=%d\n", qp, qp->qp_type); @@ -2496,7 +2495,7 @@ int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) xa_erase_irq(&dev->qps, qp->qp_id); kfree(qp); } - return rc; + return 0; } int qedr_create_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr, u32 flags, |