[U-Boot] [PATCH 3/4] env: nand: drop not needed #ifdef CMD_SAVEENV

Christian Gmeiner christian.gmeiner at gmail.com
Tue Aug 14 09:21:18 UTC 2018


env_save_ptr(..) macro handles CMD_SAVEENV already.

Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
---
 env/nand.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/env/nand.c b/env/nand.c
index 3698e68957..d8d5f2e6b3 100644
--- a/env/nand.c
+++ b/env/nand.c
@@ -388,8 +388,6 @@ U_BOOT_ENV_LOCATION(nand) = {
 	.location	= ENVL_NAND,
 	ENV_NAME("NAND")
 	.load		= env_nand_load,
-#if defined(CMD_SAVEENV)
 	.save		= env_save_ptr(env_nand_save),
-#endif
 	.init		= env_nand_init,
 };
-- 
2.17.1



More information about the U-Boot mailing list