]> git.sur5r.net Git - u-boot/commit
cmd_bootm.c: Re-order bootm_load_os return check for ELDK4.2
authorTom Rini <trini@ti.com>
Thu, 11 Jul 2013 13:35:23 +0000 (09:35 -0400)
committerTom Rini <trini@ti.com>
Fri, 12 Jul 2013 14:32:39 +0000 (10:32 -0400)
commit970150a167c7b12973c53e64ea1973d8bd581f2e
treea010f7a2024f04d11062ca90bdc0d8b1477ba025
parentecc8edbf6995558d8a47b43ac6645840c98a7b95
cmd_bootm.c: Re-order bootm_load_os return check for ELDK4.2

With ELDK4.2 we were getting a warning that load_end may be used
uninitialized in calling lmb_reserve.  This could not be the case,
however.  If we re-order the checks (and make them slightly clearer as
well) the warning goes away.  bootm_load_os may only return 0 on
success, BOOTM_ERR_OVERLAP in a non-fatal overlap (already covered in
comments) or a fatal BOOTM_ERR that is covered in the error handler.

Signed-off-by: Tom Rini <trini@ti.com>
common/cmd_bootm.c