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:
parent
d0c482359f
commit
c510a64293
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue