IB/core: refactor ib_create_qp
authorChristoph Hellwig <hch@lst.de>
Tue, 3 May 2016 16:01:06 +0000 (18:01 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 17:37:18 +0000 (13:37 -0400)
commit04c41bf39f5b2de72bda04cf10bb95ea1870a94f
tree45d065f93528a7f9069cc222380f4a5679ae6207
parent002516edf5176dde2bee54addb7e6e8129a9532b
IB/core: refactor ib_create_qp

Split the XRC magic into a separate function, and return early on failure
to make the initialization code readable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/verbs.c