Commit cf167e5e authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by Jason Gunthorpe

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-1545Signed-off-by: default avatarHariprasad Kelam <hariprasad.kelam@gmail.com>
Acked-by: default avatarMichal Kalderon <michal.kalderon@marvell.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 4cc315c5
...@@ -2451,7 +2451,6 @@ int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) ...@@ -2451,7 +2451,6 @@ int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata)
struct qedr_dev *dev = qp->dev; struct qedr_dev *dev = qp->dev;
struct ib_qp_attr attr; struct ib_qp_attr attr;
int attr_mask = 0; int attr_mask = 0;
int rc = 0;
DP_DEBUG(dev, QEDR_MSG_QP, "destroy qp: destroying %p, qp type=%d\n", DP_DEBUG(dev, QEDR_MSG_QP, "destroy qp: destroying %p, qp type=%d\n",
qp, qp->qp_type); qp, qp->qp_type);
...@@ -2496,7 +2495,7 @@ int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) ...@@ -2496,7 +2495,7 @@ int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata)
xa_erase_irq(&dev->qps, qp->qp_id); xa_erase_irq(&dev->qps, qp->qp_id);
kfree(qp); kfree(qp);
} }
return rc; return 0;
} }
int qedr_create_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr, u32 flags, int qedr_create_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr, u32 flags,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment