diff options
author | Sandeep Paulraj <s-paulraj@ti.com> | 2009-11-16 13:32:01 -0500 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2009-11-18 14:26:40 -0600 |
commit | 6cd752f927e515e63a038fa363edceec5a59c028 (patch) | |
tree | df52cb1a9d0f6e6c851258700f609d5f1bd52c23 | |
parent | bb3e9828e7fbcc9e4518e51592876f4a0997d9ec (diff) |
NAND: Update read_read_subpage API check
This patch updates a check condition in the NAND driver.
The check condition is similat to what is in linux/next.
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 6da261c041..7171bdd51b 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -1061,7 +1061,7 @@ static int nand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, uint3 int stat; stat = chip->ecc.correct(mtd, p, &chip->buffers->ecccode[i], &chip->buffers->ecccalc[i]); - if (stat < 0) + if (stat == -1) mtd->ecc_stats.failed++; else mtd->ecc_stats.corrected += stat; |