sfc: mtd: Use MTD_FAIL_ADDR_UNKNOWN instead of 0xffffffff

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Mar 26 20:59:10 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=88dfda5f7463ce73f14f4eaf275284047f367570
Commit:     88dfda5f7463ce73f14f4eaf275284047f367570
Parent:     4de034787251e872f5eded7cfeb3fde094da633a
Author:     Shmulik Ladkani <shmulik.ladkani at gmail.com>
AuthorDate: Sun Feb 12 11:13:08 2012 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Tue Mar 27 00:34:54 2012 +0100

    sfc: mtd: Use MTD_FAIL_ADDR_UNKNOWN instead of 0xffffffff
    
    As of bb0eb217, MTD_FAIL_ADDR_UNKNOWN should be used to indicate mtd
    erase failure not specific to any particular block.
    
    Use MTD_FAIL_ADDR_UNKNOWN instead of 0xffffffff when setting
    'erase->fail_addr' in 'efx_mtd_erase()'.
    
    Signed-off-by: Shmulik Ladkani <shmulik.ladkani at gmail.com>
    Acked-by: Ben Hutchings <bhutchings at solarflare.com>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/net/ethernet/sfc/mtd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ethernet/sfc/mtd.c b/drivers/net/ethernet/sfc/mtd.c
index 6622eca..c44a03e 100644
--- a/drivers/net/ethernet/sfc/mtd.c
+++ b/drivers/net/ethernet/sfc/mtd.c
@@ -193,7 +193,7 @@ static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase)
 		erase->state = MTD_ERASE_DONE;
 	} else {
 		erase->state = MTD_ERASE_FAILED;
-		erase->fail_addr = 0xffffffff;
+		erase->fail_addr = MTD_FAIL_ADDR_UNKNOWN;
 	}
 	mtd_erase_callback(erase);
 	return rc;



More information about the linux-mtd-cvs mailing list