* Patch by Rune Torgersen, 27 Feb 2004:
- Added LBA48 support (CONFIG_LBA48 & CFG_64BIT_LBA)
- Added support for 64bit printing in vsprintf (CFG_64BIT_VSPRINTF)
- Added support for 64bit strtoul (CFG_64BIT_STRTOUL)
* Patch by Masami Komiya, 27 Feb 2004:
Fix rarpboot: add autoload by NFS
* Patch by Dan Eisenhut, 26 Feb 2004:
fix flash_write return value in saveenv
* Patch by Stephan Linz, 11 Dec 2003
expand config.mk to avoid trigraph warnings on NIOS
* Rename "BMS2003" board into "HMI10"
diff --git a/common/env_flash.c b/common/env_flash.c
index af99880..079f84d 100644
--- a/common/env_flash.c
+++ b/common/env_flash.c
@@ -207,21 +207,21 @@
debug (" %08lX ... %08lX ...",
(ulong)&(flash_addr_new->data),
sizeof(env_ptr->data)+(ulong)&(flash_addr_new->data));
- if (flash_write(env_ptr->data,
+ if ((rc = flash_write(env_ptr->data,
(ulong)&(flash_addr_new->data),
- sizeof(env_ptr->data)) ||
+ sizeof(env_ptr->data))) ||
- flash_write((char *)&(env_ptr->crc),
+ (rc = flash_write((char *)&(env_ptr->crc),
(ulong)&(flash_addr_new->crc),
- sizeof(env_ptr->crc)) ||
+ sizeof(env_ptr->crc))) ||
- flash_write((char *)&obsolete_flag,
+ (rc = flash_write((char *)&obsolete_flag,
(ulong)&(flash_addr->flags),
- sizeof(flash_addr->flags)) ||
+ sizeof(flash_addr->flags))) ||
- flash_write((char *)&active_flag,
+ (rc = flash_write((char *)&active_flag,
(ulong)&(flash_addr_new->flags),
- sizeof(flash_addr_new->flags)))
+ sizeof(flash_addr_new->flags))))
{
flash_perror (rc);
goto Done;