From: Piotr Dymacz Date: Thu, 20 Mar 2014 15:02:08 +0000 (+0100) Subject: Don't need that... X-Git-Tag: 2014-11-19~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=75c1b124d016521d880f9049007bcf8b6f04fa59;p=oweals%2Fu-boot_mod.git Don't need that... --- diff --git a/u-boot/common/env_flash.c b/u-boot/common/env_flash.c index 2f787af..adabd2e 100644 --- a/u-boot/common/env_flash.c +++ b/u-boot/common/env_flash.c @@ -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);