ptp: ocp: correct label for error path
PATCH v2 1/1 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 <[email protected]>
--- drivers/ptp/ptp_ocp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ptp/ptp_ocp.c +2 -2
@@ -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 @@ ptp_ocp_probe(struct pci_dev *pdev, const struct pci_device_id *id)pci_set_drvdata (pdev,NULL ); out_disable:pci_disable_device (pdev); -out_unregister: +out_free:devlink_free (devlink);return err; }
Signature · 1 line
2.31.1
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Mon, 7 Mar 2022 16:04:58 -0800 you wrote:
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 <[email protected]>--- drivers/ptp/ptp_ocp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- [net-next,v2] ptp: ocp: correct label for error path
https://git.kernel.org/netdev/net-next/c/4587369b6cba
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html