diff options
author | Daisuke Matsuda <matsuda-daisuke@fujitsu.com> | 2022-09-08 10:30:58 +0200 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2022-09-08 10:53:41 +0200 |
commit | e866025b3b1557f9bf6ab1770f297fe6d90e0417 (patch) | |
tree | 982869ee1059af8b5ff2947f52d4878c44a764c2 /drivers/infiniband/hw | |
parent | RDMA/rxe: convert pr_warn to pr_debug (diff) | |
download | linux-e866025b3b1557f9bf6ab1770f297fe6d90e0417.tar.xz linux-e866025b3b1557f9bf6ab1770f297fe6d90e0417.zip |
RDMA/mlx5: Remove duplicate assignment in umr_rereg_pas()
The same value is assigned to 'mr->ibmr.length'. Remove redundant one.
Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
Link: https://lore.kernel.org/r/20220908083058.3993700-1-matsuda-daisuke@fujitsu.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/mlx5/mr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c index bfec9bc3cdd8..4fcb653b35bb 100644 --- a/drivers/infiniband/hw/mlx5/mr.c +++ b/drivers/infiniband/hw/mlx5/mr.c @@ -1400,7 +1400,6 @@ static int umr_rereg_pas(struct mlx5_ib_mr *mr, struct ib_pd *pd, upd_flags |= MLX5_IB_UPD_XLT_ACCESS; } - mr->ibmr.length = new_umem->length; mr->ibmr.iova = iova; mr->ibmr.length = new_umem->length; mr->page_shift = order_base_2(page_size); |