[U-Boot] [PATCH 4/4] env: sf: drop not needed #ifdef CMD_SAVEENV
Christian Gmeiner
christian.gmeiner at gmail.com
Tue Aug 14 09:21:19 UTC 2018
env_save_ptr(..) macro handles CMD_SAVEENV already.
Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
---
env/sf.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/env/sf.c b/env/sf.c
index 494510533a..70c1b61930 100644
--- a/env/sf.c
+++ b/env/sf.c
@@ -318,9 +318,7 @@ U_BOOT_ENV_LOCATION(sf) = {
.location = ENVL_SPI_FLASH,
ENV_NAME("SPI Flash")
.load = env_sf_load,
-#ifdef CMD_SAVEENV
.save = env_save_ptr(env_sf_save),
-#endif
#if defined(INITENV) && defined(CONFIG_ENV_ADDR)
.init = env_sf_init,
#endif
--
2.17.1
More information about the U-Boot
mailing list