[PATCH 4/5] imx: spl: Remove ifdefs in spl_mmc_boot_mode()

2020-05-02 Thread sbabic
> It is hard to read code which contains nested ifdef blocks. Replace > them with normal if-blocks and the IS_ENABLED() macro. This is not only > more readable but also helps as both arms are validated by the compiler > in all cases. > Signed-off-by: Harald Seiler Applied to u-boot-imx, master,

[PATCH 4/5] imx: spl: Remove ifdefs in spl_mmc_boot_mode()

2020-04-23 Thread Harald Seiler
It is hard to read code which contains nested ifdef blocks. Replace them with normal if-blocks and the IS_ENABLED() macro. This is not only more readable but also helps as both arms are validated by the compiler in all cases. Signed-off-by: Harald Seiler --- arch/arm/mach-imx/spl.c | 38