瀏覽代碼

env: don't set to default env twice when use CONFIG_ENV_IS_NOWHERE

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 <leiwen@marvell.com>
Lei Wen 14 年之前
父節點
當前提交
d259079d6d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/env_common.c

+ 1 - 1
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 ();
 	}