diff mbox series

RDMA/rxe: Remove duplicate umem assignment

Message ID 20210813055729.19885-1-mie@igel.co.jp (mailing list archive)
State Superseded
Headers show
Series RDMA/rxe: Remove duplicate umem assignment | expand

Commit Message

Shunsuke Mie Aug. 13, 2021, 5:57 a.m. UTC
While initialization of rxe_mr, mr->umem is assigned duplicate. Remove
the redundant code.

Signed-off-by: Shunsuke Mie <mie@igel.co.jp>
---
 drivers/infiniband/sw/rxe/rxe_mr.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Xiao Yang Aug. 13, 2021, 11:30 a.m. UTC | #1
Hi,

My same fix[1] has been merged into for-next branch on rdma but it is
not merged into mainline for now.

[1]:
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=cdbdb7724740f62d11519679e11cf673cd9d6c8f

Best Regards,
Xiao Yang

On 2021/8/13 13:57, Shunsuke Mie wrote:
> While initialization of rxe_mr, mr->umem is assigned duplicate. Remove
> the redundant code.
>
> Signed-off-by: Shunsuke Mie <mie@igel.co.jp>
> ---
>  drivers/infiniband/sw/rxe/rxe_mr.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/infiniband/sw/rxe/rxe_mr.c b/drivers/infiniband/sw/rxe/rxe_mr.c
> index 73bbafd32554..6e2e0da2e50d 100644
> --- a/drivers/infiniband/sw/rxe/rxe_mr.c
> +++ b/drivers/infiniband/sw/rxe/rxe_mr.c
> @@ -122,7 +122,6 @@ int rxe_mr_init_user(struct rxe_pd *pd, u64 start, u64 length, u64 iova,
>  		goto err1;
>  	}
>  
> -	mr->umem = umem;
>  	num_buf = ib_umem_num_pages(umem);
>  
>  	rxe_mr_init(access, mr);
Shunsuke Mie Aug. 16, 2021, 1:45 a.m. UTC | #2
HI, Xiao.

> My same fix[1] has been merged into for-next branch on rdma but it is
> not merged into mainline for now.
>
> [1]:
> https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=cdbdb7724740f62d11519679e11cf673cd9d6c8f
Thank you for the information. I had missed it.

Thanks a lot,
Shunsuke Mie
diff mbox series

Patch

diff --git a/drivers/infiniband/sw/rxe/rxe_mr.c b/drivers/infiniband/sw/rxe/rxe_mr.c
index 73bbafd32554..6e2e0da2e50d 100644
--- a/drivers/infiniband/sw/rxe/rxe_mr.c
+++ b/drivers/infiniband/sw/rxe/rxe_mr.c
@@ -122,7 +122,6 @@  int rxe_mr_init_user(struct rxe_pd *pd, u64 start, u64 length, u64 iova,
 		goto err1;
 	}
 
-	mr->umem = umem;
 	num_buf = ib_umem_num_pages(umem);
 
 	rxe_mr_init(access, mr);