]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
env: remove duplicated env_get_char_spec()
authorIgor Grinberg <grinberg@compulab.co.il>
Sun, 23 Sep 2012 04:39:16 +0000 (04:39 +0000)
committerTom Rini <trini@ti.com>
Wed, 26 Sep 2012 18:08:32 +0000 (11:08 -0700)
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 <grinberg@compulab.co.il>
common/env_fat.c
common/env_remote.c

index bad92aa89ef41dd5e5cad6b4ff609d11183cfa94..ca76967a5fa12d405dd882207ab910a2fdbe2f8c 100644 (file)
@@ -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 */
index a7b147b20db2b62b1161be6cc3a2822cb32468d5..6c10c90c038518ad7867d3580de20232dfd8a977 100644 (file)
@@ -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) {