* [PATCH] RDMA/mlx5: Remove duplicate pointer assignment in mlx5_ib_alloc_implicit_mr()
@ 2022-05-18 4:49 Daisuke Matsuda
2022-05-20 13:54 ` Jason Gunthorpe
0 siblings, 1 reply; 2+ messages in thread
From: Daisuke Matsuda @ 2022-05-18 4:49 UTC (permalink / raw)
To: leonro, jgg; +Cc: aharonl, linux-kernel, linux-rdma, Daisuke Matsuda
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] RDMA/mlx5: Remove duplicate pointer assignment in mlx5_ib_alloc_implicit_mr()
2022-05-18 4:49 [PATCH] RDMA/mlx5: Remove duplicate pointer assignment in mlx5_ib_alloc_implicit_mr() Daisuke Matsuda
@ 2022-05-20 13:54 ` Jason Gunthorpe
0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2022-05-20 13:54 UTC (permalink / raw)
To: Daisuke Matsuda; +Cc: leonro, aharonl, linux-kernel, linux-rdma
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-20 13:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-18 4:49 [PATCH] RDMA/mlx5: Remove duplicate pointer assignment in mlx5_ib_alloc_implicit_mr() Daisuke Matsuda
2022-05-20 13:54 ` Jason Gunthorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox