diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2020-02-19 12:47:41 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-24 17:10:00 +0300 |
commit | 3908bc93443be458abe28b9c3797ad912612631a (patch) | |
tree | a69aa1293d5e8eae68f72dccad527b5eb707edd5 /env | |
parent | 82b2f41357199c9fd06da80f8dd21e0576d08efe (diff) | |
download | u-boot-3908bc93443be458abe28b9c3797ad912612631a.tar.xz |
env/fat.c: remove private CMD_SAVEENV logic
Always compile the env_fat_save() function, and let
CONFIG_IS_ENABLED(SAVEENV) (via the ENV_SAVE_PTR macro) decide whether
it actually ends up being compiled in.
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Diffstat (limited to 'env')
-rw-r--r-- | env/fat.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -26,12 +26,8 @@ # endif #else # define LOADENV -# if defined(CONFIG_CMD_SAVEENV) -# define CMD_SAVEENV -# endif #endif -#ifdef CMD_SAVEENV static int env_fat_save(void) { env_t __aligned(ARCH_DMA_MINALIGN) env_new; @@ -76,7 +72,6 @@ static int env_fat_save(void) return 0; } -#endif /* CMD_SAVEENV */ #ifdef LOADENV static int env_fat_load(void) @@ -135,7 +130,5 @@ U_BOOT_ENV_LOCATION(fat) = { #ifdef LOADENV .load = env_fat_load, #endif -#ifdef CMD_SAVEENV - .save = env_save_ptr(env_fat_save), -#endif + .save = ENV_SAVE_PTR(env_fat_save), }; |