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

Antony Pavlov antonynpavlov at gmail.com
Wed Aug 3 04:33:52 EDT 2011


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 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




More information about the barebox mailing list