RDMA/rxe: cleanup some error handling in rxe_verbs.c
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 28 Oct 2022 07:50:53 +0000 (15:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:40 +0000 (09:33 +0100)
commit0f2a0ebb89a74a2a2f234a5ebbe9ea7d5bb1a5b3
tree4e1dc3c49ef03d2c134ee024fadd203802f62aaf
parentf56c87aee1f845df9386e3cf0bc78acea1c92366
RDMA/rxe: cleanup some error handling in rxe_verbs.c

[ Upstream commit 692373d186205dfb1b56f35f22702412d94d9420 ]

Instead of 'goto and return', just return directly to
simplify the error handling, and avoid some unnecessary
return value check.

Link: https://lore.kernel.org/r/20221028075053.3990467-1-xuhaoyue1@hisilicon.com
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Stable-dep-of: a77a52385e9a ("RDMA/rxe: Fix missing memory barriers in rxe_queue.h")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/sw/rxe/rxe_verbs.c