From: Simon Glass Date: Fri, 30 May 2014 20:41:51 +0000 (-0600) Subject: Correct return code from builtin_run_command_list() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4eb580b780057413ddc82855d913ea2f1cbc9dd2;p=project%2Fbcm63xx%2Fu-boot.git Correct return code from builtin_run_command_list() The return code is not consistent with cli_simple_run_command_list(). For the last command in a sequence, the return code is actually inverted. Fix it. Signed-off-by: Simon Glass --- diff --git a/common/cli_simple.c b/common/cli_simple.c index 413c2eb89e..49d5833928 100644 --- a/common/cli_simple.c +++ b/common/cli_simple.c @@ -331,7 +331,7 @@ int cli_simple_run_command_list(char *cmd, int flag) ++next; } if (rcode == 0 && *line) - rcode = (cli_simple_run_command(line, 0) >= 0); + rcode = (cli_simple_run_command(line, 0) < 0); return rcode; }