
3 Oct
2018
3 Oct
'18
12:44 p.m.
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@nxp.com --- 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