[U-Boot] [PATCH 15/30] env: common: Drop env_get_char_init()
Simon Glass
sjg at chromium.org
Sun Jul 9 20:52:58 UTC 2017
This function does nothing but call env_get_char_spec(). Drop it and
adjust its only caller.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
env/common.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/env/common.c b/env/common.c
index 10c4e134f4..e919269c7f 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);
}
/*
--
2.13.2.725.g09c95d1e9-goog
More information about the U-Boot
mailing list