summaryrefslogtreecommitdiffstats
path: root/examples/standalone
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2010-08-13 09:36:36 +0200
committerStefan Roese <sr@denx.de>2010-08-18 09:09:00 +0200
commit70084df7125a0b67de707b999982ec67adfdc35c (patch)
tree5b000a06eb2ec9cef2a2b712f2b5e68ceffda762 /examples/standalone
parentd77c7ac47e4ea750cc13c2f0ecc037ab7afa7964 (diff)
downloadtalos-obmc-uboot-70084df7125a0b67de707b999982ec67adfdc35c.tar.gz
talos-obmc-uboot-70084df7125a0b67de707b999982ec67adfdc35c.zip
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>
Diffstat (limited to 'examples/standalone')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud