summaryrefslogtreecommitdiff
path: root/common/cli_simple.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-05-30 14:41:51 -0600
committerTom Rini <trini@ti.com>2014-06-05 14:38:38 -0400
commit4eb580b780057413ddc82855d913ea2f1cbc9dd2 (patch)
tree991433a30c40dd753ae5ff63c48f133c7660d4a7 /common/cli_simple.c
parent587e1d43e786ad70ce52a47f74b98d785098e378 (diff)
downloadu-boot-imx-4eb580b780057413ddc82855d913ea2f1cbc9dd2.zip
u-boot-imx-4eb580b780057413ddc82855d913ea2f1cbc9dd2.tar.gz
u-boot-imx-4eb580b780057413ddc82855d913ea2f1cbc9dd2.tar.bz2
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 <sjg@chromium.org>
Diffstat (limited to 'common/cli_simple.c')
-rw-r--r--common/cli_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cli_simple.c b/common/cli_simple.c
index 413c2eb..49d5833 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;
}