projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm: omap4: panda: Fix checkpatch on panda file
[oweals/u-boot.git]
/
common
/
env_sf.c
diff --git
a/common/env_sf.c
b/common/env_sf.c
index 592b87088eeeab7974d83eef18fab50d43c02e6b..d9e9085461bb6759b0b0ee0cc2f717d6653ede99 100644
(file)
--- a/
common/env_sf.c
+++ b/
common/env_sf.c
@@
-59,11
+59,6
@@
char *env_name_spec = "SPI Flash";
static struct spi_flash *env_flash;
static struct spi_flash *env_flash;
-uchar env_get_char_spec(int index)
-{
- return *((uchar *)(gd->env_addr + index));
-}
-
#if defined(CONFIG_ENV_OFFSET_REDUND)
int saveenv(void)
{
#if defined(CONFIG_ENV_OFFSET_REDUND)
int saveenv(void)
{
@@
-84,7
+79,7
@@
int saveenv(void)
}
res = (char *)&env_new.data;
}
res = (char *)&env_new.data;
- len = hexport_r(&env_htab, '\0', &res, ENV_SIZE, 0, NULL);
+ len = hexport_r(&env_htab, '\0',
0,
&res, ENV_SIZE, 0, NULL);
if (len < 0) {
error("Cannot export environment: errno = %d\n", errno);
return 1;
if (len < 0) {
error("Cannot export environment: errno = %d\n", errno);
return 1;
@@
-282,7
+277,7
@@
int saveenv(void)
}
res = (char *)&env_new.data;
}
res = (char *)&env_new.data;
- len = hexport_r(&env_htab, '\0', &res, ENV_SIZE, 0, NULL);
+ len = hexport_r(&env_htab, '\0',
0,
&res, ENV_SIZE, 0, NULL);
if (len < 0) {
error("Cannot export environment: errno = %d\n", errno);
goto done;
if (len < 0) {
error("Cannot export environment: errno = %d\n", errno);
goto done;