diff options
author | Wolfgang Denk <wd@denx.de> | 2009-07-18 23:18:14 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-07-18 23:18:14 +0200 |
commit | 5669ed4557edf2714203aa8625c9fcd5a753b338 (patch) | |
tree | 2d35d3cadfbdfdfd9dce951cc4841d8e0b63477a /common | |
parent | 6bb6e6c75ec4ef496f00f7f530e549d3e073c5de (diff) | |
download | u-boot-imx-5669ed4557edf2714203aa8625c9fcd5a753b338.zip u-boot-imx-5669ed4557edf2714203aa8625c9fcd5a753b338.tar.gz u-boot-imx-5669ed4557edf2714203aa8625c9fcd5a753b338.tar.bz2 |
cmd_flash.c: fix warning: unused variable 'addr_first'/'addr_last'
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_flash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cmd_flash.c b/common/cmd_flash.c index 9f27ab0..bc651fa 100644 --- a/common/cmd_flash.c +++ b/common/cmd_flash.c @@ -467,18 +467,18 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) flash_info_t *info; ulong bank; int i, n, sect_first, sect_last; -#endif /* CONFIG_SYS_NO_FLASH */ ulong addr_first, addr_last; - int p; +#endif /* CONFIG_SYS_NO_FLASH */ #if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS) struct mtd_device *dev; struct part_info *part; u8 dev_type, dev_num, pnum; #endif - int rcode = 0; #ifdef CONFIG_HAS_DATAFLASH int status; #endif + int p; + int rcode = 0; if (argc < 3) { cmd_usage(cmdtp); |