diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-12-12 08:16:28 +0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-12-13 22:46:56 +0400 |
commit | 1cf0a8b2fbe38ed07b1babaaacfc22bd427f66f0 (patch) | |
tree | 05392b808a9eb3ad930beabc44e4c99057a898e2 /common/cmd_nvedit.c | |
parent | 32057717e06a4e703fdf3774671cea14554de76b (diff) | |
download | u-boot-1cf0a8b2fbe38ed07b1babaaacfc22bd427f66f0.tar.xz |
env: Add a loadaddr env handler
Remove the hard-coded loadaddr handler and use a callback instead
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'common/cmd_nvedit.c')
-rw-r--r-- | common/cmd_nvedit.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index df136cfa35..9ff8b36d3e 100644 --- a/common/cmd_nvedit.c +++ b/common/cmd_nvedit.c @@ -73,10 +73,6 @@ SPI_FLASH|NVRAM|MMC|FAT|REMOTE} or CONFIG_ENV_IS_NOWHERE */ #define MAX_ENV_SIZE (1 << 20) /* 1 MiB */ -ulong load_addr = CONFIG_SYS_LOAD_ADDR; /* Default Load Address */ -ulong save_addr; /* Default Save Address */ -ulong save_size; /* Default Save Size (in bytes) */ - /* * This variable is incremented on each do_env_set(), so it can * be used via get_env_id() as an indication, if the environment @@ -270,14 +266,6 @@ int env_change_ok(const ENTRY *item, const char *newval, enum env_op op, } #endif - /* - * Some variables should be updated when the corresponding - * entry in the environment is changed - */ - if (strcmp(name, "loadaddr") == 0) { - load_addr = simple_strtoul(newval, NULL, 16); - return 0; - } return 0; } |