RDMA/ucma: Cleanup to reduce duplicate code
authorXiaofei Tan <tanxiaofei@huawei.com>
Thu, 6 May 2021 08:51:46 +0000 (16:51 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 11 May 2021 16:17:26 +0000 (13:17 -0300)
commite3d65124ce2bf43f2d65f925e590482bd676f2f4
treef027936b95e567e17359ba8c013afb3eef360906
parent591f762b2750c628df9412d1c795b56e83a34b3e
RDMA/ucma: Cleanup to reduce duplicate code

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.

Link: https://lore.kernel.org/r/1620291106-3675-1-git-send-email-tanxiaofei@huawei.com
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/ucma.c