diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/env_flash.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/common/env_flash.c b/common/env_flash.c index 19e228264..426d01b19 100644 --- a/common/env_flash.c +++ b/common/env_flash.c @@ -160,9 +160,11 @@ int  env_init(void)  #ifdef CMD_SAVEENV  int saveenv(void)  { +	char *saved_data = NULL;  	int rc = 1; +#if CFG_ENV_SECT_SIZE > CFG_ENV_SIZE  	ulong up_data = 0; -	char *saved_data = NULL; +#endif  	debug ("Protect off %08lX ... %08lX\n",  		(ulong)flash_addr, end_addr); |