diff options
-rw-r--r-- | drivers/mtd/nand/rtc_from4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/rtc_from4.c b/drivers/mtd/nand/rtc_from4.c index 02deec3ec264..9189ec8f243e 100644 --- a/drivers/mtd/nand/rtc_from4.c +++ b/drivers/mtd/nand/rtc_from4.c | |||
@@ -456,7 +456,7 @@ static int rtc_from4_errstat(struct mtd_info *mtd, struct nand_chip *this, | |||
456 | rtn = nand_do_read(mtd, page, len, &retlen, buf); | 456 | rtn = nand_do_read(mtd, page, len, &retlen, buf); |
457 | 457 | ||
458 | /* if read failed or > 1-bit error corrected */ | 458 | /* if read failed or > 1-bit error corrected */ |
459 | if (rtn || (mtd->ecc_stats.corrected - corrected) > 1) { | 459 | if (rtn || (mtd->ecc_stats.corrected - corrected) > 1) |
460 | er_stat |= 1 << 1; | 460 | er_stat |= 1 << 1; |
461 | kfree(buf); | 461 | kfree(buf); |
462 | } | 462 | } |