Commit c647f880 authored by Juan Zhou's avatar Juan Zhou
Browse files

Revert "RDMA/hns: Fix inaccurate error label name in init instance"

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8E9OJ



--------------------------------------------------------------------------

This reverts commit b32adf46.

Signed-off-by: default avatarJuan Zhou <zhoujuan51@h-partners.com>
parent 54bce7f0
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -7486,14 +7486,14 @@ static int __hns_roce_hw_v2_init_instance(struct hnae3_handle *handle)
	ret = hns_roce_init(hr_dev);
	if (ret) {
		dev_err(hr_dev->dev, "RoCE Engine init failed!\n");
		goto error_failed_roce_init;
		goto error_failed_cfg;
	}

	if (hr_dev->pci_dev->revision == PCI_REVISION_ID_HIP08) {
		ret = free_mr_init(hr_dev);
		if (ret) {
			dev_err(hr_dev->dev, "failed to init free mr!\n");
			goto error_failed_free_mr_init;
			goto error_failed_roce_init;
		}
	}

@@ -7501,10 +7501,10 @@ static int __hns_roce_hw_v2_init_instance(struct hnae3_handle *handle)

	return 0;

error_failed_free_mr_init:
error_failed_roce_init:
	hns_roce_exit(hr_dev, true);

error_failed_roce_init:
error_failed_cfg:
	kfree(hr_dev->priv);

error_failed_kzalloc: