]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootm: Avoid returning error codes from command
authorSimon Glass <sjg@chromium.org>
Tue, 11 Oct 2022 15:47:08 +0000 (09:47 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Oct 2022 03:17:12 +0000 (21:17 -0600)
commitf06443f9d5dfc616b05d3526c258044bfce77419
tree935ea51d1b8b118cac47808ff9b8c615f528ad16
parent13819f07ea6c60e87b708755a53954b8c0c99a32
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>
cmd/bootm.c