aboutsummaryrefslogtreecommitdiff
path: root/env/nand.c
diff options
context:
space:
mode:
Diffstat (limited to 'env/nand.c')
-rw-r--r--env/nand.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/env/nand.c b/env/nand.c
index 3698e689571..29eda66fad8 100644
--- a/env/nand.c
+++ b/env/nand.c
@@ -40,11 +40,9 @@
#endif
#if defined(ENV_IS_EMBEDDED)
-env_t *env_ptr = &environment;
+static env_t *env_ptr = &environment;
#elif defined(CONFIG_NAND_ENV_DST)
-env_t *env_ptr = (env_t *)CONFIG_NAND_ENV_DST;
-#else /* ! ENV_IS_EMBEDDED */
-env_t *env_ptr;
+static env_t *env_ptr = (env_t *)CONFIG_NAND_ENV_DST;
#endif /* ENV_IS_EMBEDDED */
DECLARE_GLOBAL_DATA_PTR;