diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2019-12-12 20:34:17 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-12-13 09:27:25 +0100 |
commit | 7caa298e4dc5af198b32fe10d37864a098008110 (patch) | |
tree | a9209f824d633971bb1151e5cd301c01de6656a0 /commands/loadb.c | |
parent | 8cd3e5007c88317735332c1a78251bf7c22d4888 (diff) | |
download | barebox-7caa298e4dc5af198b32fe10d37864a098008110.tar.gz barebox-7caa298e4dc5af198b32fe10d37864a098008110.tar.xz |
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>
Diffstat (limited to 'commands/loadb.c')
0 files changed, 0 insertions, 0 deletions