freescale: imx8mm_evk: Use IS_ENABLED instead of #ifdef

Use IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG) to make the code
more readable and fix checkpatch.pl warning

Signed-off-by: Tommaso Merciai <tomm.merciai@gmail.com>
This commit is contained in:
Tommaso Merciai authored and Stefano Babic committed 2022-02-18 18:12:23 +01:00
1 parent 310d6655a1
commit 22636ca23b
1 file changed
+5 -4
+5 -4
View File
@@ -60,9 +60,10 @@ int board_mmc_get_env_dev(int devno)
int board_late_init(void)
{
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
env_set("board_name", "EVK");
env_set("board_rev", "iMX8MM");
#endif
if (IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG)) {
env_set("board_name", "EVK");
env_set("board_rev", "iMX8MM");
}
return 0;
}