apalis-imx6: avoid save environment unasked
authorDenys Drozdov <denys.drozdov@toradex.com>
Fri, 8 Apr 2022 08:07:06 +0000 (10:07 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 17:10:44 +0000 (19:10 +0200)
U-Boot should never save the environment unasked.
This also avoids storing broken ftd_file to eMMC.

Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
board/toradex/apalis_imx6/apalis_imx6.c

index 25a4cd9..a78d52d 100644 (file)
@@ -727,9 +727,6 @@ int board_late_init(void)
                if ((fdt_env != NULL) && (strcmp(FDT_FILE, fdt_env) == 0)) {
                        env_set("fdt_file", FDT_FILE_V1_0);
                        printf("patching fdt_file to " FDT_FILE_V1_0 "\n");
-#ifndef CONFIG_ENV_IS_NOWHERE
-                       env_save();
-#endif
                }
        }
 #endif /* CONFIG_TDX_APALIS_IMX6_V1_0 */