mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 08:18:47 +00:00
ptp: ocp: correct label for error path
When devlink_register() was removed from the error path, the corresponding label was not updated. Rename the label for readability puposes, no functional change. Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com> Link: https://lore.kernel.org/r/20220308000458.2166-1-jonathan.lemon@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
869420a8be
commit
4587369b6c
@ -2608,7 +2608,7 @@ ptp_ocp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
err = pci_enable_device(pdev);
|
||||
if (err) {
|
||||
dev_err(&pdev->dev, "pci_enable_device\n");
|
||||
goto out_unregister;
|
||||
goto out_free;
|
||||
}
|
||||
|
||||
bp = devlink_priv(devlink);
|
||||
@ -2654,7 +2654,7 @@ out:
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
out_disable:
|
||||
pci_disable_device(pdev);
|
||||
out_unregister:
|
||||
out_free:
|
||||
devlink_free(devlink);
|
||||
return err;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user