projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
env: Adjust the load() method to return an error
[oweals/u-boot.git]
/
env
/
nvram.c
diff --git
a/env/nvram.c
b/env/nvram.c
index 85af37d4a0540fd51dfce4c099c4bc297b751a64..5fb3115ce65af3db82429e8311c3d507adc6fa47 100644
(file)
--- a/
env/nvram.c
+++ b/
env/nvram.c
@@
-51,7
+51,7
@@
static int env_nvram_get_char(int index)
}
#endif
-static
void
env_nvram_load(void)
+static
int
env_nvram_load(void)
{
char buf[CONFIG_ENV_SIZE];
@@
-61,6
+61,8
@@
static void env_nvram_load(void)
memcpy(buf, (void *)CONFIG_ENV_ADDR, CONFIG_ENV_SIZE);
#endif
env_import(buf, 1);
+
+ return 0;
}
static int env_nvram_save(void)