Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx> --- 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 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox