mtd: mxc_nand: remove duplicated ecc_stats counting
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Fri, 29 Nov 2013 13:14:29 +0000 (14:14 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 3 Jan 2014 19:22:21 +0000 (11:22 -0800)
The ecc_stats.corrected count variable will already be incremented in
the above framework-layer just after this callback.

Cc: stable@vger.kernel.org # 2.6.36+
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/mxc_nand.c

index 9dfdb06c508b05439cd93a71ce5c30ef8558335e..a4bad1165c2a08657aa037363924e7ed23a8f0f9 100644 (file)
@@ -677,7 +677,6 @@ static int mxc_nand_correct_data_v2_v3(struct mtd_info *mtd, u_char *dat,
                ecc_stat >>= 4;
        } while (--no_subpages);
 
-       mtd->ecc_stats.corrected += ret;
        pr_debug("%d Symbol Correctable RS-ECC Error\n", ret);
 
        return ret;