diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-13 08:33:10 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-13 08:33:13 +0200 |
commit | c510a6429332e2b8a92d691055cd4e1ad133cc56 (patch) | |
tree | 3851cd284f48b82e3268c132e9716df250380b3c /arch | |
parent | d0c482359f89e8ea4d4c9ee558f94868f2a78ca2 (diff) | |
download | barebox-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')
-rw-r--r-- | arch/arm/mach-omap/xload.c | 1 |
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: |