From bf95df44ff69e3e365603e3e30664ec41bfe0c65 Mon Sep 17 00:00:00 2001 From: Igor Grinberg Date: Mon, 26 Dec 2011 03:33:10 +0000 Subject: env: factor out the env_get_char_spec() function env_get_char_spec() function is duplicated across multiple environment files. Remove the duplication by providing a default implementation. Add "weak" declaration, so the default implementation can be overridden. Signed-off-by: Igor Grinberg --- common/env_mmc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'common/env_mmc.c') diff --git a/common/env_mmc.c b/common/env_mmc.c index 8441c77ead7..0c58ae19b21 100644 --- a/common/env_mmc.c +++ b/common/env_mmc.c @@ -54,11 +54,6 @@ static int __mmc_get_env_addr(struct mmc *mmc, u32 *env_addr) int mmc_get_env_addr(struct mmc *mmc, u32 *env_addr) __attribute__((weak, alias("__mmc_get_env_addr"))); -uchar env_get_char_spec(int index) -{ - return *((uchar *)(gd->env_addr + index)); -} - int env_init(void) { /* use default */ -- cgit v1.2.3