aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ocrdma
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-07-05 10:52:25 -0700
committerJason Gunthorpe <jgg@mellanox.com>2018-07-09 12:11:22 -0600
commitaa9d5ffbb72746dd1de9d92be7e8b437c41cf0a3 (patch)
tree94c07a44523bae64ca92302d04c8bc23efbcf356 /drivers/infiniband/hw/ocrdma
parentIB/nes: Fix a compiler warning (diff)
downloadlinux-dev-aa9d5ffbb72746dd1de9d92be7e8b437c41cf0a3.tar.xz
linux-dev-aa9d5ffbb72746dd1de9d92be7e8b437c41cf0a3.zip
RDMA/ocrdma: Remove a set-but-not-used variable
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_ah.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_ah.c b/drivers/infiniband/hw/ocrdma/ocrdma_ah.c
index a51b80bfadb3..8cc9459a9f9b 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_ah.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_ah.c
@@ -167,13 +167,11 @@ struct ib_ah *ocrdma_create_ah(struct ib_pd *ibpd, struct rdma_ah_attr *attr,
const struct ib_gid_attr *sgid_attr;
struct ocrdma_pd *pd = get_ocrdma_pd(ibpd);
struct ocrdma_dev *dev = get_ocrdma_dev(ibpd->device);
- const struct ib_global_route *grh;
if ((attr->type != RDMA_AH_ATTR_TYPE_ROCE) ||
!(rdma_ah_get_ah_flags(attr) & IB_AH_GRH))
return ERR_PTR(-EINVAL);
- grh = rdma_ah_read_grh(attr);
if (atomic_cmpxchg(&dev->update_sl, 1, 0))
ocrdma_init_service_level(dev);