diff options
author | Stefan Roese <sr@denx.de> | 2010-08-13 09:36:36 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2010-08-18 09:09:00 +0200 |
commit | 70084df7125a0b67de707b999982ec67adfdc35c (patch) | |
tree | 5b000a06eb2ec9cef2a2b712f2b5e68ceffda762 /drivers/block/sata_dwc.c | |
parent | d77c7ac47e4ea750cc13c2f0ecc037ab7afa7964 (diff) | |
download | u-boot-imx-70084df7125a0b67de707b999982ec67adfdc35c.zip u-boot-imx-70084df7125a0b67de707b999982ec67adfdc35c.tar.gz u-boot-imx-70084df7125a0b67de707b999982ec67adfdc35c.tar.bz2 |
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 'drivers/block/sata_dwc.c')
0 files changed, 0 insertions, 0 deletions