RDMA/qedr: Fix rc initialization on CNQ allocation failure
authorKalderon, Michal <Michal.Kalderon@cavium.com>
Wed, 21 Mar 2018 12:51:51 +0000 (14:51 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Mar 2018 20:38:41 +0000 (14:38 -0600)
commitb15606f47b89b0b09936d7f45b59ba6275527041
tree881432198d8524c60705ffcc7dc9bc16258fadf0
parentc3594f22302cca5e924e47ec1cc8edd265708f41
RDMA/qedr: Fix rc initialization on CNQ allocation failure

Return code wasn't set properly when CNQ allocation failed.
This only affect error message logging, currently user will
receive an error message that says the qedr driver load failed
with rc '0', instead of ENOMEM

Fixes: ec72fce4 ("qedr: Add support for RoCE HW init")
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/qedr/main.c