leds: lm3642: remove warnings for bad strtol, cleanup gotos
authorPavel Machek <pavel@ucw.cz>
Thu, 2 Jan 2020 21:31:44 +0000 (22:31 +0100)
committerPavel <pavel@ucw.cz>
Thu, 2 Jan 2020 21:42:37 +0000 (22:42 +0100)
commit867b682459208dc3e18d3ab69f35da0064943889
treed553062de18366ef1e19702371c5b05a72fe48e4
parent445da487f19cd4b2ee6035c043493c8adf4bf905
leds: lm3642: remove warnings for bad strtol, cleanup gotos

Bad string from userspace is not worth printing warning on; gotos that
just directly return are not good, plus a comment fix.

Cc: jacek.anaszewski@gmail.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, dmurphy@ti.com
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lm3642.c