]> git.baikalelectronics.ru Git - uboot.git/commit
imx: spl: Remove ifdefs in spl_mmc_boot_mode()
authorHarald Seiler <hws@denx.de>
Thu, 23 Apr 2020 11:07:52 +0000 (13:07 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 1 May 2020 16:48:36 +0000 (18:48 +0200)
commitfbbde8443f28301cd761e7ac2aa44f67956b91eb
tree227c2334f2a3ff39b187fbcdfaadf8aa500109dd
parent17ee1240a17606541eff465f4247ea5413d83f18
imx: spl: Remove ifdefs in spl_mmc_boot_mode()

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 <hws@denx.de>
arch/arm/mach-imx/spl.c