c
< 	ret = hclge_pci_init(hdev);
< 	if (ret)
---
> 	ret = hclge_pci_init(hdev);
> 	if (ret) {
> 		goto out;
> 	}
> 	if (hdev == NULL) {
> 		ret = -EINVAL;
> 		goto out;
> 	}
> 	ret = hclge_devlink_init(hdev);
> out:
> 	return ret;
