]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
leds: lp8860: Return directly from lp8860_init
authorAndrew Davis <afd@ti.com>
Thu, 5 Mar 2026 20:37:03 +0000 (14:37 -0600)
committerLee Jones <lee@kernel.org>
Tue, 10 Mar 2026 09:23:07 +0000 (09:23 +0000)
commit665e064221498b08387f1fb5e12cee4d6e7f8d8a
treee7d87d45fd43b86e7133e0fd2782f2bff59df936
parent4df6b6b3fbbc4056880efa4fe0a4686af91297ff
leds: lp8860: Return directly from lp8860_init

No need to use goto to jump to a label that also just returns,
return directly in the if statements.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://patch.msgid.link/20260305203706.841384-2-afd@ti.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-lp8860.c