diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2013-11-29 08:14:29 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-13 16:48:00 -0500 |
commit | c9f36c5a61a49fd873fc38aa447934ef2417d1d8 (patch) | |
tree | 8f8c0a724ef4854cd3859664a0cb3abc58c70e19 /drivers/mtd/nand | |
parent | c953495fd19e3a96a2f927941d3b1423fc294132 (diff) |
mtd: mxc_nand: remove duplicated ecc_stats counting
commit 0566477762f9e174e97af347ee9c865f908a5647 upstream.
The ecc_stats.corrected count variable will already be incremented in
the above framework-layer just after this callback.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 07e5784e5cd3..9896b636c4eb 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c | |||
@@ -676,7 +676,6 @@ static int mxc_nand_correct_data_v2_v3(struct mtd_info *mtd, u_char *dat, | |||
676 | ecc_stat >>= 4; | 676 | ecc_stat >>= 4; |
677 | } while (--no_subpages); | 677 | } while (--no_subpages); |
678 | 678 | ||
679 | mtd->ecc_stats.corrected += ret; | ||
680 | pr_debug("%d Symbol Correctable RS-ECC Error\n", ret); | 679 | pr_debug("%d Symbol Correctable RS-ECC Error\n", ret); |
681 | 680 | ||
682 | return ret; | 681 | return ret; |