summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2010-10-29 11:49:45 +0200
committerWolfgang Denk <wd@denx.de>2010-10-29 23:07:59 +0200
commit590084a2f7ed3e87c9ad44a68b82af4d01b6386e (patch)
tree4c42d776f1897f9c63689ed305892eaff2f636a5 /common
parent0c0892be0d93a5a892b93739c5eb3bf692fed4ff (diff)
downloadu-boot-imx-590084a2f7ed3e87c9ad44a68b82af4d01b6386e.zip
u-boot-imx-590084a2f7ed3e87c9ad44a68b82af4d01b6386e.tar.gz
u-boot-imx-590084a2f7ed3e87c9ad44a68b82af4d01b6386e.tar.bz2
env_sf: remove warning introduced with last patch
Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/env_sf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/env_sf.c b/common/env_sf.c
index a597b24..47c6a70 100644
--- a/common/env_sf.c
+++ b/common/env_sf.c
@@ -272,7 +272,7 @@ int saveenv(void)
u32 saved_size, saved_offset;
char *saved_buffer = NULL;
u32 sector = 1;
- int ret;
+ int ret = 1;
env_t env_new;
char *res;
ssize_t len;
@@ -293,7 +293,6 @@ int saveenv(void)
saved_offset = CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE;
saved_buffer = malloc(saved_size);
if (!saved_buffer) {
- ret = 1;
goto done;
}
ret = spi_flash_read(env_flash, saved_offset,