commit | 1b893707cd7997080767c1f11b7ead415bd247fc | [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 | b90cf90b5a55453c0abf354bf3847ee631463db5 [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>