mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 07:04:28 +00:00
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>
This commit is contained in:
parent
587e1d43e7
commit
4eb580b780
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue