Commit 4eb580b7 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <>
parent 587e1d43
......@@ -331,7 +331,7 @@ int cli_simple_run_command_list(char *cmd, int flag)
if (rcode == 0 && *line)
rcode = (cli_simple_run_command(line, 0) >= 0);
rcode = (cli_simple_run_command(line, 0) < 0);
return rcode;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment