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>
This commit is contained in:
parent
35e3d2e8a3
commit
17be909a1b
2
env/sata.c
vendored
2
env/sata.c
vendored
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user