Don't need that...
authorPiotr Dymacz <pepe2k@gmail.com>
Thu, 20 Mar 2014 15:02:08 +0000 (16:02 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Thu, 20 Mar 2014 15:02:08 +0000 (16:02 +0100)
u-boot/common/env_flash.c

index 2f787aff4153cbcfe6b152709cfd70950deffd8a..adabd2e8d35baf9e82dd661319ee7bf8e9c6ddc1 100644 (file)
@@ -47,12 +47,6 @@ DECLARE_GLOBAL_DATA_PTR;
        #error CFG_ENV_SIZE_REDUND should not be less then CFG_ENV_SIZE
 #endif
 
-#ifdef CONFIG_INFERNO
-       #ifdef CFG_ENV_ADDR_REDUND
-               #error CFG_ENV_ADDR_REDUND is not implemented for CONFIG_INFERNO
-       #endif
-#endif
-
 const char *env_name_spec = "FLASH";
 
 #ifdef ENV_IS_EMBEDDED
@@ -272,13 +266,7 @@ int saveenv(void){
        len = CFG_ENV_SIZE;
 #endif /* CFG_ENV_SECT_SIZE */
 
-#ifndef CONFIG_INFERNO
        end_addr = flash_sect_addr + len - 1;
-#else
-       /* this is the last sector, and the size is hardcoded here */
-       /* otherwise we will get stack problems on loading 128 KB environment */
-       end_addr = flash_sect_addr + 0x20000 - 1;
-#endif
 
        //debug("Protect off %08lX ... %08lX\n", (ulong)flash_sect_addr, end_addr);