]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67d6a31f9a3d946cc164510479dc1a8c1a97d5fd
tree4e1dc3c49ef03d2c134ee024fadd203802f62aaf
parent520f1a07debad8381886038dbe5bb9cd534adfad
RDMA/rxe: cleanup some error handling in rxe_verbs.c

[ Upstream commit 6b9017f14a80e717e39683779116e32437be7986 ]

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: 27be7c133294 ("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