RDMA/bnxt_re: Return directly without goto jumps
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Fri, 19 May 2023 06:48:16 +0000 (23:48 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 19 May 2023 16:26:19 +0000 (13:26 -0300)
commit07d5ce14b2aa22dc6a92f9769035281b68250d3e
treebed2bdb7d90c77f47e8b705ad70f9689e079f737
parent43774bc156614346fe5dacabc8e8c229167f2536
RDMA/bnxt_re: Return directly without goto jumps

When there is no cleanup to be done, return directly.  This will help
eliminating unnecessary local variables and goto labels.  This patch fixes
such occurrences in qplib_fp.c file.

Fixes: 37cb11acf1f7 ("RDMA/bnxt_re: Add SRQ support for Broadcom adapters")
Fixes: 159fb4ceacd7 ("RDMA/bnxt_re: introduce a function to allocate swq")
Link: https://lore.kernel.org/r/1684478897-12247-7-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/qplib_fp.c