mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
Remove code duplication for setting the default environment
common/env_common.c (default_env): new function that resets the environment to the default value common/env_common.c (env_relocate): use default_env instead of own copy common/env_nand.c (env_relocate_spec): use default_env instead of own copy include/environment.h: added default_env prototype Signed-off-by: Werner Almesberger <werner@openmoko.org> Signed-off-by: Harald Welte <laforge@openmoko.org>
This commit is contained in:
committed by
Wolfgang Denk
parent
c3bf1ad7ba
commit
5bb12dbd7a
@@ -117,4 +117,7 @@ unsigned char env_get_char_memory (int index);
|
||||
/* Function that updates CRC of the enironment */
|
||||
void env_crc_update (void);
|
||||
|
||||
/* [re]set to the default environment */
|
||||
void set_default_env(void);
|
||||
|
||||
#endif /* _ENVIRONMENT_H_ */
|
||||
|
||||
Reference in New Issue
Block a user