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_flash.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'common/env_flash.c') diff --git a/common/env_flash.c b/common/env_flash.c index a99f850..aa970d4 100644 --- a/common/env_flash.c +++ b/common/env_flash.c @@ -73,11 +73,6 @@ static ulong end_addr_new = CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SECT_SIZE - 1; #endif /* CONFIG_ENV_ADDR_REDUND */ -uchar env_get_char_spec(int index) -{ - return *((uchar *)(gd->env_addr + index)); -} - #ifdef CONFIG_ENV_ADDR_REDUND int env_init(void) { -- cgit v1.1