Commit b3b43483 authored by YueHaibing's avatar YueHaibing Committed by Jason Gunthorpe

RDMA/qedr: remove set but not used variable 'ctx'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/infiniband/hw/qedr/verbs.c: In function 'qedr_create_srq':
drivers/infiniband/hw/qedr/verbs.c:1450:24: warning:
 variable 'ctx' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarRahul Verma <rahul.verma@cavium.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 882dff28
...@@ -1447,7 +1447,6 @@ struct ib_srq *qedr_create_srq(struct ib_pd *ibpd, ...@@ -1447,7 +1447,6 @@ struct ib_srq *qedr_create_srq(struct ib_pd *ibpd,
u64 pbl_base_addr, phy_prod_pair_addr; u64 pbl_base_addr, phy_prod_pair_addr;
struct ib_ucontext *ib_ctx = NULL; struct ib_ucontext *ib_ctx = NULL;
struct qedr_srq_hwq_info *hw_srq; struct qedr_srq_hwq_info *hw_srq;
struct qedr_ucontext *ctx = NULL;
u32 page_cnt, page_size; u32 page_cnt, page_size;
struct qedr_srq *srq; struct qedr_srq *srq;
int rc = 0; int rc = 0;
...@@ -1473,7 +1472,6 @@ struct ib_srq *qedr_create_srq(struct ib_pd *ibpd, ...@@ -1473,7 +1472,6 @@ struct ib_srq *qedr_create_srq(struct ib_pd *ibpd,
if (udata && ibpd->uobject && ibpd->uobject->context) { if (udata && ibpd->uobject && ibpd->uobject->context) {
ib_ctx = ibpd->uobject->context; ib_ctx = ibpd->uobject->context;
ctx = get_qedr_ucontext(ib_ctx);
if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) { if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) {
DP_ERR(dev, DP_ERR(dev,
......
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