summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-12-21 02:05:57 +0000
committerJason Gunthorpe <jgg@mellanox.com>2018-12-20 20:47:42 -0700
commite7c4d8e6045171896d763c551b90c672fb5ab42b (patch)
treef831c9f8fde08e72f9ebec3c6def403c5fcc6a6a
parentd53ec8af56d5163f8a42e961ece3aeb5c560e79d (diff)
downloadlinux-e7c4d8e6045171896d763c551b90c672fb5ab42b.tar.gz
linux-e7c4d8e6045171896d763c551b90c672fb5ab42b.tar.bz2
linux-e7c4d8e6045171896d763c551b90c672fb5ab42b.zip
IB/mlx4: Remove set but not used variable 'pd'
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>
-rw-r--r--drivers/infiniband/hw/mlx4/qp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c
index 24ee30f1cb45..971e9a9ebdaf 100644
--- a/drivers/infiniband/hw/mlx4/qp.c
+++ b/drivers/infiniband/hw/mlx4/qp.c
@@ -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);
}