• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision3a26c43e422c514f17297302adde8d743349ccf9 (tree)
Time2011-02-20 04:32:38
AuthorRemy Bohmer <linux@bohm...>
CommiterRemy Bohmer

Log Message

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>

Change Summary

Incremental Difference

--- 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[])
459459 flash_info_t *info;
460460 ulong bank;
461461 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
466462 #if defined(CONFIG_CMD_MTDPARTS)
467463 struct mtd_device *dev;
468464 struct part_info *part;
469465 u8 dev_type, dev_num, pnum;
470466 #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
471471 #ifdef CONFIG_HAS_DATAFLASH
472472 int status;
473473 #endif