summaryrefslogtreecommitdiff
path: root/common/env_mmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/env_mmc.c')
-rw-r--r--common/env_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env_mmc.c b/common/env_mmc.c
index 413a5c7..74e6c60 100644
--- a/common/env_mmc.c
+++ b/common/env_mmc.c
@@ -295,7 +295,7 @@ void env_relocate_spec(void)
}
total = CONFIG_ENV_SIZE;
- ret = mmc_read(CONFIG_ENV_OFFSET, (u_char *)env_ptr, &total);
+ ret = mmc_read(CONFIG_ENV_OFFSET, (u_char *)env_ptr, total);
if (ret || total != CONFIG_ENV_SIZE)
return use_default();