Commit 988d74de authored by Daisuke Matsuda's avatar Daisuke Matsuda Committed by Jason Gunthorpe

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

The pointer imr->umem is assigned twice. Fix this by removing the
redundant one.

Link: https://lore.kernel.org/r/20220518044914.1903125-1-matsuda-daisuke@fujitsu.comSigned-off-by: default avatarDaisuke Matsuda <matsuda-daisuke@fujitsu.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 845517ed
...@@ -509,7 +509,6 @@ struct mlx5_ib_mr *mlx5_ib_alloc_implicit_mr(struct mlx5_ib_pd *pd, ...@@ -509,7 +509,6 @@ struct mlx5_ib_mr *mlx5_ib_alloc_implicit_mr(struct mlx5_ib_pd *pd,
imr->ibmr.lkey = imr->mmkey.key; imr->ibmr.lkey = imr->mmkey.key;
imr->ibmr.rkey = imr->mmkey.key; imr->ibmr.rkey = imr->mmkey.key;
imr->ibmr.device = &dev->ib_dev; imr->ibmr.device = &dev->ib_dev;
imr->umem = &umem_odp->umem;
imr->is_odp_implicit = true; imr->is_odp_implicit = true;
xa_init(&imr->implicit_children); xa_init(&imr->implicit_children);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment