[PATCH v1 1/2] verdin-imx8mm: do not save environment when it's nowhere

Andrejs Cainikovs andrejs.cainikovs at toradex.com
Tue Aug 23 13:05:48 CEST 2022


From: Denys Drozdov <denys.drozdov at toradex.com>

This code part is broken, remove it.

Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs at toradex.com>
Signed-off-by: Denys Drozdov <denys.drozdov at toradex.com>
---
 board/toradex/verdin-imx8mm/verdin-imx8mm.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/board/toradex/verdin-imx8mm/verdin-imx8mm.c b/board/toradex/verdin-imx8mm/verdin-imx8mm.c
index 7597cd81f94..bad8833b228 100644
--- a/board/toradex/verdin-imx8mm/verdin-imx8mm.c
+++ b/board/toradex/verdin-imx8mm/verdin-imx8mm.c
@@ -102,9 +102,6 @@ static void select_dt_from_module_version(void)
 	if (strcmp(variant, env_variant)) {
 		printf("Setting variant to %s\n", variant);
 		env_set("variant", variant);
-
-		if (IS_ENABLED(CONFIG_ENV_IS_NOWHERE))
-			env_save();
 	}
 }
 
-- 
2.34.1



More information about the U-Boot mailing list