macintosh: Use common error handling code in via_pmu_led_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 3 Oct 2024 19:06:42 +0000 (21:06 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Nov 2024 11:54:28 +0000 (22:54 +1100)
commit352268dc6da7b422022541c2cf846663110f775c
tree608c46143a0aafb52c62d1d0534a5f10b4e8cca7
parent2e716f5cdebed2fb98cafffaf626645c2e922dbb
macintosh: Use common error handling code in via_pmu_led_init()

Add a jump target so that a bit of exception handling can be better reused
at the end of this function implementation.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/189b93e2-4e81-438d-9c77-cbe4d9d7a0d9@web.de
drivers/macintosh/via-pmu-led.c