[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YJOxDlL1v9bV0dZf@unreal>
Date: Thu, 6 May 2021 12:04:14 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Xiaofei Tan <tanxiaofei@...wei.com>
Cc: jgg@...pe.ca, liweihang@...wei.com, liangwenpeng@...wei.com,
shiju.jose@...wei.com, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org, linuxarm@...neuler.org
Subject: Re: [PATCH] RDMA/ucma: Cleanup to reduce duplicate code
On Thu, May 06, 2021 at 04:51:46PM +0800, Xiaofei Tan wrote:
> The lable "err1" does the same thing as the branch of copy_to_user()
> failed in the function ucma_create_id(). Just jump to the label directly
> to reduce duplicate code.
>
> Signed-off-by: Xiaofei Tan <tanxiaofei@...wei.com>
> ---
> drivers/infiniband/core/ucma.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@...dia.com>
Powered by blists - more mailing lists