]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
IB/mlx4: Remove set but not used variable 'pd'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 21 Dec 2018 02:05:57 +0000 (02:05 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 21 Dec 2018 03:47:42 +0000 (20:47 -0700)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/infiniband/hw/mlx4/qp.c: In function '_mlx4_ib_destroy_qp':
drivers/infiniband/hw/mlx4/qp.c:1612:22: warning:
 variable 'pd' set but not used [-Wunused-but-set-variable]

Fixes: e00b64f7c54c ("RDMA: Cleanup undesired pd->uobject usage")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/qp.c

index 24ee30f1cb45b26ce2bc81298452439b00cd1ad5..971e9a9ebdaf5ed5031e5ff31db92ada681bbc69 100644 (file)
@@ -1609,9 +1609,6 @@ static int _mlx4_ib_destroy_qp(struct ib_qp *qp)
        if (qp->rwq_ind_tbl) {
                destroy_qp_rss(dev, mqp);
        } else {
-               struct mlx4_ib_pd *pd;
-
-               pd = get_pd(mqp);
                destroy_qp_common(dev, mqp, MLX4_IB_QP_SRC, qp->uobject);
        }