]> git.itanic.dy.fi Git - linux-stable/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)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 Oct 2022 18:11:44 +0000 (15:11 -0300)
commit692373d186205dfb1b56f35f22702412d94d9420
treee9d098096328915bec11680bf86c690b74de7b60
parentb071850ef62e36b2fc2ec81863f07be857151409
RDMA/rxe: cleanup some error handling in rxe_verbs.c

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>
drivers/infiniband/sw/rxe/rxe_verbs.c