summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGal Pressman <galpress@amazon.com>2020-07-05 17:11:43 +0300
committerJason Gunthorpe <jgg@nvidia.com>2020-07-10 16:40:39 -0300
commit6c72a038bf4235180550dff9ddff7392e3cff893 (patch)
treed5dc5e3c44dcac16009548d09dfc342077c303c5
parent1e2b5a90ded2852017e327e93861346ee70c5384 (diff)
RDMA/mlx5: Remove unused to_mibmr function
The to_mibmr function is unused, remove it. Link: https://lore.kernel.org/r/20200705141143.47303-1-galpress@amazon.com Signed-off-by: Gal Pressman <galpress@amazon.com> Acked-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
-rw-r--r--drivers/infiniband/hw/mlx5/mlx5_ib.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h
index 13a2d1f3f14d..b93f3aa9e218 100644
--- a/drivers/infiniband/hw/mlx5/mlx5_ib.h
+++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h
@@ -1051,11 +1051,6 @@ static inline struct mlx5_ib_rwq *to_mibrwq(struct mlx5_core_qp *core_qp)
return container_of(core_qp, struct mlx5_ib_rwq, core_qp);
}
-static inline struct mlx5_ib_mr *to_mibmr(struct mlx5_core_mkey *mmkey)
-{
- return container_of(mmkey, struct mlx5_ib_mr, mmkey);
-}
-
static inline struct mlx5_ib_pd *to_mpd(struct ib_pd *ibpd)
{
return container_of(ibpd, struct mlx5_ib_pd, ibpd);