diff options
author | Daisuke Matsuda <matsuda-daisuke@fujitsu.com> | 2022-05-18 06:49:14 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-05-19 20:57:52 +0200 |
commit | 988d74deaa46a9c63d2061c270692d6e6192c6c1 (patch) | |
tree | 0a0f6b97aee7aa9ff5fa6e957e4ce59ea608d7b3 /drivers | |
parent | RDMA/qedr: Remove unnecessary synchronize_irq() before free_irq() (diff) | |
download | linux-988d74deaa46a9c63d2061c270692d6e6192c6c1.tar.xz linux-988d74deaa46a9c63d2061c270692d6e6192c6c1.zip |
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.com
Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/mlx5/odp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/odp.c b/drivers/infiniband/hw/mlx5/odp.c index 66ac7bdc59f6..84da5674e1ab 100644 --- a/drivers/infiniband/hw/mlx5/odp.c +++ b/drivers/infiniband/hw/mlx5/odp.c @@ -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.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); |