[U-Boot] [PATCH v2 04/33] env: nand: remove unnecessary env_ptr definition

Rajesh Bhagat rajesh.bhagat at nxp.com
Sun Oct 7 10:21:02 UTC 2018


env_ptr is not used when ENV_IS_EMBEDDED and CONFIG_NAND_ENV_DST
is not defined. Hence, remove it.

Signed-off-by: Rajesh Bhagat <rajesh.bhagat at nxp.com>
---
Change in v2: None

 env/nand.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/env/nand.c b/env/nand.c
index 4d04bbb164..29eda66fad 100644
--- a/env/nand.c
+++ b/env/nand.c
@@ -43,8 +43,6 @@
 static env_t *env_ptr = &environment;
 #elif defined(CONFIG_NAND_ENV_DST)
 static env_t *env_ptr = (env_t *)CONFIG_NAND_ENV_DST;
-#else /* ! ENV_IS_EMBEDDED */
-static env_t *env_ptr;
 #endif /* ENV_IS_EMBEDDED */
 
 DECLARE_GLOBAL_DATA_PTR;
-- 
2.17.1



More information about the U-Boot mailing list