commands: led: print actual error code when led_set fails
If led_set fails, the error code is the return value, not errno.
Fix this. While at replace the magic value in the command return code.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8cd3e50 commit 7caa298e4dc5af198b32fe10d37864a098008110
@Ahmad Fatoum Ahmad Fatoum authored on 12 Dec 2019
Sascha Hauer committed on 13 Dec 2019
Showing 1 changed file
View
commands/led.c