OSDN Git Service

RDMA/umem: Refactor exit paths in ib_umem_get
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 10 Jul 2018 10:31:49 +0000 (13:31 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 13 Jul 2018 18:15:05 +0000 (12:15 -0600)
commit1215cb7c88ec888d599a249142a74dd93b8985ad
treec41e7c5a4f51ea5664b1ab85d356dc2bc0deaf4f
parent40ddacf2dda952e0f33b40d850bf5f7403bdbe0f
RDMA/umem: Refactor exit paths in ib_umem_get

Simplify exit paths in ib_umem_get to use the standard goto unwind
pattern.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem.c