diff mbox

[U-Boot] env: remove duplicated env_get_char_spec()

Message ID 1348411156-3277-1-git-send-email-grinberg@compulab.co.il
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Igor Grinberg Sept. 23, 2012, 2:39 p.m. UTC
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    |    5 -----
 common/env_remote.c |    5 -----
 2 files changed, 0 insertions(+), 10 deletions(-)

Comments

Tom Rini Sept. 27, 2012, 4:21 p.m. UTC | #1
On Sun, Sep 23, 2012 at 04:39:16AM -0000, Igor Grinberg wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/common/env_fat.c b/common/env_fat.c
index bad92aa..ca76967 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 3bf0f95..87af1936 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) {