summaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-02-09 11:48:51 +0100
committerTom Rini <trini@konsulko.com>2021-04-16 17:32:34 -0400
commite41f55b32e0ac38da77d8f86792164faac5ef7c5 (patch)
tree7b6b0df41a6008e231b8f6b6f510604862ec6f32 /env
parent1af031ac3e3e75ea1ae58da093db956a8c9bc144 (diff)
downloadu-boot-e41f55b32e0ac38da77d8f86792164faac5ef7c5.tar.gz
u-boot-e41f55b32e0ac38da77d8f86792164faac5ef7c5.tar.bz2
u-boot-e41f55b32e0ac38da77d8f86792164faac5ef7c5.zip
env: sf: update the use of macro ENV_SAVE_PTR
Remove CONFIG_IS_ENABLED(SAVEENV) as it is already tested in the ENV_SAVE_PTR macro. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'env')
-rw-r--r--env/sf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env/sf.c b/env/sf.c
index e13d41478b..20358f5c3f 100644
--- a/env/sf.c
+++ b/env/sf.c
@@ -414,6 +414,6 @@ U_BOOT_ENV_LOCATION(sf) = {
.location = ENVL_SPI_FLASH,
ENV_NAME("SPIFlash")
.load = env_sf_load,
- .save = CONFIG_IS_ENABLED(SAVEENV) ? ENV_SAVE_PTR(env_sf_save) : NULL,
+ .save = ENV_SAVE_PTR(env_sf_save),
.init = env_sf_init,
};