[U-Boot] [PATCH v2 02/21] x86: Correct missing local variable in bootm

Simon Glass sjg at chromium.org
Tue Jun 11 20:14:34 CEST 2013


Enabling FIT produces a compile error. Fix this.

Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2:
- Add new patch to fix FIT compile error for x86

 arch/x86/lib/bootm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c
index 2520228..0d3250c 100644
--- a/arch/x86/lib/bootm.c
+++ b/arch/x86/lib/bootm.c
@@ -63,6 +63,8 @@ int do_bootm_linux(int flag, int argc, char * const argv[],
 		}
 #if defined(CONFIG_FIT)
 	} else if (images->fit_uname_os) {
+		int ret;
+
 		ret = fit_image_get_data(images->fit_hdr_os,
 					images->fit_noffset_os, &data, &len);
 		if (ret) {
-- 
1.8.3



More information about the U-Boot mailing list