OSDN Git Service

RDMA/hns: Do not overwrite the error code during error unwind in hns_roce_init
authorLijun Ou <oulijun@huawei.com>
Wed, 25 Jul 2018 07:29:31 +0000 (15:29 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Jul 2018 22:48:48 +0000 (16:48 -0600)
commit3635ac020842d37d207570891cb901afa653e55d
treed711ce2cf1a026107e9ccb14144e966f5c7a0fc8
parent2577188edcf3e235b4f060a350fad84510eb7680
RDMA/hns: Do not overwrite the error code during error unwind in hns_roce_init

When init cmq fail in initial flow of RoCE, it should return the errno of
cmq_init function, not of the rest call.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_main.c