aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns
diff options
context:
space:
mode:
authoroulijun <oulijun@huawei.com>2018-05-04 10:57:07 +0800
committerDoug Ledford <dledford@redhat.com>2018-05-09 10:45:18 -0400
commit2349fdd483ea933b223f3eca53ed42835383d316 (patch)
treef5e8a93dd1e75b8f8c52ea8789ee344e2c10dec8 /drivers/infiniband/hw/hns
parentRDMA/hns: Update convert function of endian format (diff)
downloadlinux-dev-2349fdd483ea933b223f3eca53ed42835383d316.tar.xz
linux-dev-2349fdd483ea933b223f3eca53ed42835383d316.zip
RDMA/hns: Add return operation when configured global param fail
When configure global param function run fail, it should directly return and the initial flow will stop. Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hns')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index 50f55bd2c75f..539b0caacb9f 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@ -1085,6 +1085,7 @@ static int hns_roce_v2_profile(struct hns_roce_dev *hr_dev)
if (ret) {
dev_err(hr_dev->dev, "Configure global param fail, ret = %d.\n",
ret);
+ return ret;
}
/* Get pf resource owned by every pf */