IB/mlx4: Rework special QP creation error path
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 14 Nov 2016 16:44:11 +0000 (08:44 -0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Dec 2016 18:01:11 +0000 (13:01 -0500)
commitb42dde478bcaa8113b0d1cd82ad0048372c5599d
treef742d628e6cee0ed6779963a091d8d9a0d354d3f
parente98172462f0b75ed60f3a73aa280fb29cafd450f
IB/mlx4: Rework special QP creation error path

The special QP creation error path relies on offset_of(struct mlx4_ib_sqp,
qp) == 0. Remove this assumption because that makes the QP creation
code easier to understand.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/qp.c