]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
commite7c4d8e6045171896d763c551b90c672fb5ab42b
treef831c9f8fde08e72f9ebec3c6def403c5fcc6a6a
parentd53ec8af56d5163f8a42e961ece3aeb5c560e79d
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>
drivers/infiniband/hw/mlx4/qp.c