cmd_flash.c: fix warning: unused variable 'addr_first'/'addr_last'
authorWolfgang Denk <wd@denx.de>
Sat, 18 Jul 2009 21:18:14 +0000 (23:18 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Jul 2009 21:18:14 +0000 (23:18 +0200)
Signed-off-by: Wolfgang Denk <wd@denx.de>
common/cmd_flash.c

index 9f27ab0dd94df253472f412dc1c7671b4a940cf3..bc651fa1fd48259f9cda4f984f5f0f89a78b6ad2 100644 (file)
@@ -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);