Message ID | 20220908083058.3993700-1-matsuda-daisuke@fujitsu.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | RDMA/mlx5: Remove duplicate assignment in umr_rereg_pas() | expand |
On Thu, Sep 08, 2022 at 05:30:58PM +0900, Daisuke Matsuda wrote: > The same value is assigned to 'mr->ibmr.length'. Remove redundant one. > > Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com> > --- > drivers/infiniband/hw/mlx5/mr.c | 1 - > 1 file changed, 1 deletion(-) > Thanks, applied.
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);
The same value is assigned to 'mr->ibmr.length'. Remove redundant one. Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com> --- drivers/infiniband/hw/mlx5/mr.c | 1 - 1 file changed, 1 deletion(-)