summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRemy Bohmer <linux@bohmer.net>2011-02-19 19:56:28 +0100
committerRemy Bohmer <linux@bohmer.net>2011-02-19 20:32:38 +0100
commit3a26c43e422c514f17297302adde8d743349ccf9 (patch)
tree5173783a2b5577193ab7692623743413ec8761f3 /common
parente4ae66608bbf8b7be9162e5933a98905dcf52d6b (diff)
downloadu-boot-imx-3a26c43e422c514f17297302adde8d743349ccf9.zip
u-boot-imx-3a26c43e422c514f17297302adde8d743349ccf9.tar.gz
u-boot-imx-3a26c43e422c514f17297302adde8d743349ccf9.tar.bz2
Fix build warnings in cmd_flash.c
These variables are only used in case CONFIG_SYS_NO_FLASH is NOT set: struct mtd_device *dev; struct part_info *part; u8 dev_type, dev_num, pnum; Signed-off-by: Remy Bohmer <linux@bohmer.net>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_flash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/cmd_flash.c b/common/cmd_flash.c
index 4493948..bd49b79 100644
--- a/common/cmd_flash.c
+++ b/common/cmd_flash.c
@@ -459,15 +459,15 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
flash_info_t *info;
ulong bank;
int i, n, sect_first, sect_last;
-#endif /* CONFIG_SYS_NO_FLASH */
-#if !defined(CONFIG_SYS_NO_FLASH) || defined(CONFIG_HAS_DATAFLASH)
- ulong addr_first, addr_last;
-#endif
#if defined(CONFIG_CMD_MTDPARTS)
struct mtd_device *dev;
struct part_info *part;
u8 dev_type, dev_num, pnum;
#endif
+#endif /* CONFIG_SYS_NO_FLASH */
+#if !defined(CONFIG_SYS_NO_FLASH) || defined(CONFIG_HAS_DATAFLASH)
+ ulong addr_first, addr_last;
+#endif
#ifdef CONFIG_HAS_DATAFLASH
int status;
#endif