[PATCH 2/3] env: sf: update the use of macro ENV_SAVE_PTR

Patrick Delaunay patrick.delaunay at foss.st.com
Tue Feb 9 11:48:51 CET 2021


Remove CONFIG_IS_ENABLED(SAVEENV) as it is already tested in
the ENV_SAVE_PTR macro.

Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
---

 env/sf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/env/sf.c b/env/sf.c
index 42d762714e..3f2fbbec12 100644
--- a/env/sf.c
+++ b/env/sf.c
@@ -405,6 +405,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,
 };
-- 
2.17.1



More information about the U-Boot mailing list