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>
diff --git a/env/sf.c b/env/sf.c
index e13d414..20358f5 100644
--- a/env/sf.c
+++ b/env/sf.c
@@ -414,6 +414,6 @@
.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,
};