Revision | 3a26c43e422c514f17297302adde8d743349ccf9 (tree) |
---|---|
Time | 2011-02-20 04:32:38 |
Author | Remy Bohmer <linux@bohm...> |
Commiter | Remy Bohmer |
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>
@@ -459,15 +459,15 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) | ||
459 | 459 | flash_info_t *info; |
460 | 460 | ulong bank; |
461 | 461 | int i, n, sect_first, sect_last; |
462 | -#endif /* CONFIG_SYS_NO_FLASH */ | |
463 | -#if !defined(CONFIG_SYS_NO_FLASH) || defined(CONFIG_HAS_DATAFLASH) | |
464 | - ulong addr_first, addr_last; | |
465 | -#endif | |
466 | 462 | #if defined(CONFIG_CMD_MTDPARTS) |
467 | 463 | struct mtd_device *dev; |
468 | 464 | struct part_info *part; |
469 | 465 | u8 dev_type, dev_num, pnum; |
470 | 466 | #endif |
467 | +#endif /* CONFIG_SYS_NO_FLASH */ | |
468 | +#if !defined(CONFIG_SYS_NO_FLASH) || defined(CONFIG_HAS_DATAFLASH) | |
469 | + ulong addr_first, addr_last; | |
470 | +#endif | |
471 | 471 | #ifdef CONFIG_HAS_DATAFLASH |
472 | 472 | int status; |
473 | 473 | #endif |