[PATCH 4/5] commands: trigger: check trigger disable return code too
Antony Pavlov
antonynpavlov at gmail.com
Wed Jul 30 10:34:35 PDT 2014
Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
commands/trigger.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/commands/trigger.c b/commands/trigger.c
index 17c8411..b605448 100644
--- a/commands/trigger.c
+++ b/commands/trigger.c
@@ -68,8 +68,9 @@ static int do_trigger(int argc, char *argv[])
break;
case LED_COMMAND_DISABLE_TRIGGER:
- led_set_trigger(trigger, NULL);
- return 0;
+ ret = led_set_trigger(trigger, NULL);
+ break;
+
case LED_COMMAND_SET_TRIGGER:
if (argc - optind != 1)
return COMMAND_ERROR_USAGE;
--
2.0.1
More information about the barebox
mailing list