From: Tom Rini Date: Fri, 12 Jul 2013 17:24:04 -0400 Subject: [U-Boot] [PATCH] cmd_bootm.c: Re-order bootm_load_os return check for ELDK4.2 In-Reply-To: <1373549884-17765-1-git-send-email-trini@ti.com> References: <1373549884-17765-1-git-send-email-trini@ti.com> Message-ID: <20130712212404.GT13531@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jul 11, 2013 at 09:38:04AM -0400, Tom Rini wrote: > 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 Applied to u-boot/master. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: