RDMA/ocrdma: Remove a set-but-not-used variable
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 5 Jul 2018 17:52:25 +0000 (10:52 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 9 Jul 2018 18:11:22 +0000 (12:11 -0600)
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/ocrdma/ocrdma_ah.c

index a51b80bfadb3b849eec6c6bfde874dbc780532f0..8cc9459a9f9b61d2832dc5f500709e5b20f28578 100644 (file)
@@ -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);