summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap/xload.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-07-13 08:33:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-07-13 08:33:13 +0200
commitc510a6429332e2b8a92d691055cd4e1ad133cc56 (patch)
tree3851cd284f48b82e3268c132e9716df250380b3c /arch/arm/mach-omap/xload.c
parentd0c482359f89e8ea4d4c9ee558f94868f2a78ca2 (diff)
downloadbarebox-c510a6429332e2b8a92d691055cd4e1ad133cc56.tar.gz
barebox-c510a6429332e2b8a92d691055cd4e1ad133cc56.tar.xz
ARM: omap: xload: Fix func uninitialized warning
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>
Diffstat (limited to 'arch/arm/mach-omap/xload.c')
-rw-r--r--arch/arm/mach-omap/xload.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-omap/xload.c b/arch/arm/mach-omap/xload.c
index 4a0714ed93..a013717213 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: