]> git.baikalelectronics.ru Git - uboot.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)
commitfc5512631d4b874c19292c1921359ce9de34497a
tree935ea51d1b8b118cac47808ff9b8c615f528ad16
parentcbde198d7914b4d3712cca5a35160dea4bcbdbcf
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