summaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2019-01-07 09:22:35 +0000
committerTom Rini <trini@konsulko.com>2019-01-09 07:13:32 -0500
commit17be909a1b67e919de6fc20b23f35c66a4cdf4c6 (patch)
treed7734ce6cae103d8e783f2068ae1f4c40edc3253 /env
parent35e3d2e8a30321195e4f5cd8aafba6aefe818b3d (diff)
env: sata: Fix saveenv issue
Wrong env buffer was passed into sata write function, cause the saveenv not work. Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'env')
-rw-r--r--env/sata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env/sata.c b/env/sata.c
index 59aedf4d76..a2ff5c66f7 100644
--- a/env/sata.c
+++ b/env/sata.c
@@ -65,7 +65,7 @@ static int env_sata_save(void)
return 1;
printf("Writing to SATA(%d)...", env_sata);
- if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, &env_new)) {
+ if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, (u_char *)env_new)) {
puts("failed\n");
return 1;
}