summaryrefslogtreecommitdiff
path: root/board/hidden_dragon
diff options
context:
space:
mode:
Diffstat (limited to 'board/hidden_dragon')
-rw-r--r--board/hidden_dragon/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/hidden_dragon/flash.c b/board/hidden_dragon/flash.c
index 21c5a01..a2ed3bd 100644
--- a/board/hidden_dragon/flash.c
+++ b/board/hidden_dragon/flash.c
@@ -212,7 +212,7 @@ unsigned long flash_init (void)
&flash_info[0]);
#endif
-#if (CFG_ENV_IS_IN_FLASH == 1) && defined(CFG_ENV_ADDR)
+#if defined(CFG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
flash_protect (FLAG_PROTECT_SET,
CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SIZE - 1,