9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2015-07-13 08:33:10 +02:00
parent d0c482359f
commit c510a64293
1 changed files with 1 additions and 0 deletions

View File

@ -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: