Re: [PATCH] commands: led: print actual error code when led_set fails

2019-12-13 Thread Sascha Hauer
On Thu, Dec 12, 2019 at 08:34:17PM +0100, Ahmad Fatoum wrote: > 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 > --- > commands/led.c | 4 ++-- > 1 file changed, 2

[PATCH] commands: led: print actual error code when led_set fails

2019-12-12 Thread Ahmad Fatoum
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 --- commands/led.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/led.c b/commands/led.c index