From: Lei Wen Date: Sun, 10 Oct 2010 12:36:40 +0800 Subject: [U-Boot] [PATCH] env: don't set to default env twice when use CONFIG_ENV_IS_NOWHERE In-Reply-To: <20101009184229.6E80514F310@gemini.denx.de> References: <20101009184229.6E80514F310@gemini.denx.de> Message-ID: <1286685400-27286-1-git-send-email-leiwen@marvell.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de When use the CONFIG_ENV_IS_NOWHERE, I met such issue: DRAM: 256 MiB Using default environment *** Warning - bad CRC, using default environment Signed-off-by: Lei Wen --- V2: don't move the warning when environment is not vaild common/env_common.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/env_common.c b/common/env_common.c index 88f068c..5acda4d 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -237,8 +237,8 @@ void env_relocate (void) set_default_env(NULL); #else show_boot_progress (-60); -#endif set_default_env("!bad CRC"); +#endif } else { env_relocate_spec (); } -- 1.7.0.4