From 18304f7675e84252965b4e24cba279071f1da472 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 24 Jul 2009 17:51:27 -0400 Subject: env: kill off default_environment_size The only environment type that uses this variable is spi flash, and that is only because it is reimplementing the common set_default_env() function. So fix the spi flash code and kill off the default_environment_size in the process. Signed-off-by: Mike Frysinger --- common/env_common.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'common/env_common.c') diff --git a/common/env_common.c b/common/env_common.c index 6be3bb04ac..be64d1307b 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -139,11 +139,6 @@ uchar default_environment[] = { "\0" }; -#if defined(CONFIG_ENV_IS_IN_NAND) /* Environment is in Nand Flash */ \ - || defined(CONFIG_ENV_IS_IN_SPI_FLASH) -int default_environment_size = sizeof(default_environment); -#endif - void env_crc_update (void) { env_ptr->crc = crc32(0, env_ptr->data, ENV_SIZE); -- cgit v1.2.1