mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
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>
This commit is contained in:
parent
e4ae66608b
commit
3a26c43e42
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue