Stefan Roese 70084df712 cfi_flash: Cleanup flash_print_info()
This patch does the following:

- Extract code to detect if sector is erased into function
  sector_erased().
- Because of this, we don't have variable declarations inside the
  sector loop in flash_print_info()
- Change "return" to "break" in the "if (ctrlc()) statement:
  This fixes a problem with the resulting output. Before this
  patch the output was:

  Sector Start Addresses:
  FC000000        FC020000        FC040000   =>

  With this patch it is now:

  Sector Start Addresses:
  FC000000        FC020000        FC040000
  =>

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: Wolfgang Denk <wd@denx.de>
2010-08-18 09:09:00 +02:00
..
2010-08-08 05:17:06 +05:30
2009-09-04 21:54:52 +02:00
2010-08-18 09:09:00 +02:00
2009-09-04 21:54:04 +02:00
2010-08-09 11:52:29 -07:00
2010-06-23 23:24:20 +02:00
2010-07-15 22:48:46 +02:00