commit | f06443f9d5dfc616b05d3526c258044bfce77419 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Oct 11 09:47:08 2022 -0600 |
committer | Simon Glass <sjg@chromium.org> | Mon Oct 17 21:17:12 2022 -0600 |
tree | 935ea51d1b8b118cac47808ff9b8c615f528ad16 | |
parent | 13819f07ea6c60e87b708755a53954b8c0c99a32 [diff] |
bootm: Avoid returning error codes from command Functions which implement commands must return a CMD_RET_... error code. At present bootm can return a negative errno value in some cases, thus causing strange behaviour such as trying to exit the shell and printing usage information. Fix this by returning the correct value. Signed-off-by: Simon Glass <sjg@chromium.org>