mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: omap: xload: Fix func uninitialized warning
@ 2015-07-13  6:34 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2015-07-13  6:34 UTC (permalink / raw)
  To: Barebox List

When doing USB boot without having it enabled in the config func is used
unitialized. Explicitly set this to NULL so that booting fails in this case.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/mach-omap/xload.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-omap/xload.c b/arch/arm/mach-omap/xload.c
index 4a0714e..a013717 100644
--- a/arch/arm/mach-omap/xload.c
+++ b/arch/arm/mach-omap/xload.c
@@ -293,6 +293,7 @@ static __noreturn int omap_xload(void)
 			func = omap4_xload_boot_usb();
 		} else {
 			printf("booting from USB not enabled\n");
+			func = NULL;
 		}
 		break;
 	case BOOTSOURCE_NAND:
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-13  6:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-13  6:34 [PATCH] ARM: omap: xload: Fix func uninitialized warning Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox