diff mbox series

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

Message ID 20220518044914.1903125-1-matsuda-daisuke@fujitsu.com (mailing list archive)
State Accepted
Delegated to: Jason Gunthorpe
Headers show
Series RDMA/mlx5: Remove duplicate pointer assignment in mlx5_ib_alloc_implicit_mr() | expand

Commit Message

Daisuke Matsuda (Fujitsu) May 18, 2022, 4:49 a.m. UTC
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(-)

Comments

Jason Gunthorpe May 20, 2022, 1:54 p.m. UTC | #1
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
diff mbox series

Patch

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);