]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootm: Use the error return from boot_get_kernel()
authorSimon Glass <sjg@chromium.org>
Sat, 18 Nov 2023 21:05:02 +0000 (14:05 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 16:51:24 +0000 (11:51 -0500)
commit4c76f5e49a499219cde94de5d0b0e007d3d70f79
tree28f86a3d05ee9911e56967ab2462fd9bf4c6c20b
parent4f77169c942b10f9b6dc45a3bc4be65a3d086607
bootm: Use the error return from boot_get_kernel()

Rather than looking for a zero-sized image, use the error code returned
to determine if things are OK.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
boot/bootm.c