ARM: i.MX: boot: Check for NAND boot only if necessary on i.MX53, 6
We don't need to check if the boot source is NAND in cases when we
already know for a fact that we booted from something else. To avoid
that, move the NAND check to be done inside of default branch of
the preceeding switch statement.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c6aaff8 commit 6ca8e60430ba635492e7f856f1da3b1c6747e51d
@Andrey Smirnov Andrey Smirnov authored on 16 Apr 2018
Sascha Hauer committed on 17 Apr 2018
Showing 1 changed file
View
arch/arm/mach-imx/boot.c