RDMA/rxe: Simplify the error handling code in rxe_create_ah()
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 6 Jul 2018 16:45:32 +0000 (09:45 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 9 Jul 2018 18:55:28 +0000 (12:55 -0600)
commit2f229bcf25ca076e8d8f46b9b3dccad5751040d2
treecda8147f3518de4080cdbe700e3071262f82d84d
parentefdbda81d910d8fafcd25e556b8a5722b836e162
RDMA/rxe: Simplify the error handling code in rxe_create_ah()

This patch not only simplifies the error handling code in rxe_create_ah()
but also removes the dead code that was left behind by commit 47ec38666210
("RDMA: Convert drivers to use sgid_attr instead of sgid_index").

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_verbs.c