From: Igor Grinberg Date: Sun, 23 Sep 2012 04:39:16 +0000 (+0000) Subject: env: remove duplicated env_get_char_spec() X-Git-Tag: v2025.01-rc5-pxa1908~17234 X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=3bb89e5bd5c0d3a12129b01fbb706a18ee56557e;p=u-boot.git env: remove duplicated env_get_char_spec() env_fat and env_remote have an implementation of env_get_char_spec() function that is not different than the default. Remove the duplicated code. Signed-off-by: Igor Grinberg --- diff --git a/common/env_fat.c b/common/env_fat.c index bad92aa89e..ca76967a5f 100644 --- a/common/env_fat.c +++ b/common/env_fat.c @@ -40,11 +40,6 @@ env_t *env_ptr; DECLARE_GLOBAL_DATA_PTR; -uchar env_get_char_spec(int index) -{ - return *((uchar *)(gd->env_addr + index)); -} - int env_init(void) { /* use default */ diff --git a/common/env_remote.c b/common/env_remote.c index a7b147b20d..6c10c90c03 100644 --- a/common/env_remote.c +++ b/common/env_remote.c @@ -41,11 +41,6 @@ DECLARE_GLOBAL_DATA_PTR; #define CONFIG_ENV_OFFSET 0 #endif -uchar env_get_char_spec(int index) -{ - return *((uchar *)(gd->env_addr + index)); -} - int env_init(void) { if (crc32(0, env_ptr->data, ENV_SIZE) == env_ptr->crc) {