[PATCH] RDMA/mlx5: Remove duplicate pointer assignment in mlx5_ib_alloc_implicit_mr()

Daisuke Matsuda posted 1 patch 4 years ago
drivers/infiniband/hw/mlx5/odp.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] RDMA/mlx5: Remove duplicate pointer assignment in mlx5_ib_alloc_implicit_mr()
Posted by Daisuke Matsuda 4 years ago
The pointer imr->umem is assigned twice. Fix this by removing the
redundant one.

Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
---
 drivers/infiniband/hw/mlx5/odp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/infiniband/hw/mlx5/odp.c b/drivers/infiniband/hw/mlx5/odp.c
index 41c964a45f89..b501ba0d7717 100644
--- a/drivers/infiniband/hw/mlx5/odp.c
+++ b/drivers/infiniband/hw/mlx5/odp.c
@@ -510,7 +510,6 @@ struct mlx5_ib_mr *mlx5_ib_alloc_implicit_mr(struct mlx5_ib_pd *pd,
 	imr->ibmr.lkey = imr->mmkey.key;
 	imr->ibmr.rkey = imr->mmkey.key;
 	imr->ibmr.device = &dev->ib_dev;
-	imr->umem = &umem_odp->umem;
 	imr->is_odp_implicit = true;
 	xa_init(&imr->implicit_children);
 
-- 
2.25.1
Re: [PATCH] RDMA/mlx5: Remove duplicate pointer assignment in mlx5_ib_alloc_implicit_mr()
Posted by Jason Gunthorpe 4 years ago
On Wed, May 18, 2022 at 04:49:14AM +0000, Daisuke Matsuda wrote:
> The pointer imr->umem is assigned twice. Fix this by removing the
> redundant one.
> 
> Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
> ---
>  drivers/infiniband/hw/mlx5/odp.c | 1 -
>  1 file changed, 1 deletion(-)

Applied to for-next, thanks

Jason