[PATCH] commands/led.c: fix return code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx>
---
 commands/led.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/commands/led.c b/commands/led.c
index 7fd9d44..6bda797 100644
--- a/commands/led.c
+++ b/commands/led.c
@@ -40,7 +40,7 @@ static int do_led(struct command *cmdtp, int argc, char *argv[])
 		led = led_by_number(i);
 		if (!led) {
 			printf("no registered LEDs\n");
-			return COMMAND_ERROR;
+			return 1;
 		}
 
 		printf("registered LEDs:\n");
-- 
1.7.5.4


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux