summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-08-03 12:21:54 -0600
committerTom Rini <trini@konsulko.com>2017-08-15 08:18:47 -0400
commit81a4dea228891a40b0822bcffc234fa0b6c2c691 (patch)
tree687e66beded1ca8153f1fd4663254d392bc214db
parent5fc5254084ea367a383a968cc4f79d003cccebd2 (diff)
downloadu-boot-81a4dea228891a40b0822bcffc234fa0b6c2c691.tar.gz
u-boot-81a4dea228891a40b0822bcffc234fa0b6c2c691.tar.bz2
u-boot-81a4dea228891a40b0822bcffc234fa0b6c2c691.zip
env: common: Drop env_get_char_init()
This function does nothing but call env_get_char_spec(). Drop it and adjust its only caller. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r--env/common.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/env/common.c b/env/common.c
index bfa8cfb143..f0ffe4ed73 100644
--- a/env/common.c
+++ b/env/common.c
@@ -32,11 +32,6 @@ __weak uchar env_get_char_spec(int index)
return *((uchar *)(gd->env_addr + index));
}
-static uchar env_get_char_init(int index)
-{
- return env_get_char_spec(index);
-}
-
static uchar env_get_char_memory(int index)
{
return *(uchar *)(gd->env_addr + index);
@@ -50,7 +45,7 @@ uchar env_get_char(int index)
else if (gd->flags & GD_FLG_RELOC) /* if relocated to RAM */
return env_get_char_memory(index);
else
- return env_get_char_init(index);
+ return env_get_char_spec(index);
}
/*