]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ptp: vmclock: Remove goto-based cleanup logic
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 7 Feb 2025 09:39:06 +0000 (10:39 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Feb 2025 09:20:52 +0000 (10:20 +0100)
commitb4c1fde5ced93d9f4ad89e2c940d3fd56ad82288
treec85e429e674730f4ddf58f1ff7345a126a861dd6
parent9a884c3800b207bac36e27be4ec7277c78a84568
ptp: vmclock: Remove goto-based cleanup logic

vmclock_probe() uses an "out:" label to return from the function on
error. This indicates that some cleanup operation is necessary.
However the label does not do anything as all resources are managed
through devres, making the code slightly harder to read.

Remove the label and just return directly.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/ptp/ptp_vmclock.c