diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:21:55 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-15 08:18:47 -0400 |
commit | 75de597d2d91b1102584d4b641daf592d894207e (patch) | |
tree | 53957f5ef150bee6fe530e09e7e1cd88c2192d03 | |
parent | 81a4dea228891a40b0822bcffc234fa0b6c2c691 (diff) | |
download | u-boot-75de597d2d91b1102584d4b641daf592d894207e.tar.gz u-boot-75de597d2d91b1102584d4b641daf592d894207e.tar.bz2 u-boot-75de597d2d91b1102584d4b641daf592d894207e.zip |
env: common: Drop env_get_char_memory()
This function is the same as env_get_char_spec() apart from dropping the
brackets. Drop the brackets from env_get_char_spec() and use that instead
of env_get_char_memory().
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | env/common.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/env/common.c b/env/common.c index f0ffe4ed73..842c0f7fd1 100644 --- a/env/common.c +++ b/env/common.c @@ -29,11 +29,6 @@ struct hsearch_data env_htab = { __weak uchar env_get_char_spec(int index) { - return *((uchar *)(gd->env_addr + index)); -} - -static uchar env_get_char_memory(int index) -{ return *(uchar *)(gd->env_addr + index); } @@ -42,8 +37,6 @@ uchar env_get_char(int index) /* if env is not set up, or crc was bad, use the default environment */ if (!gd->env_valid) return default_environment[index]; - else if (gd->flags & GD_FLG_RELOC) /* if relocated to RAM */ - return env_get_char_memory(index); else return env_get_char_spec(index); } |