diff mbox

mxc_nand: remove redundant stat counting

Message ID 1385651080-15562-1-git-send-email-m.grzeschik@pengutronix.de
State Accepted
Commit 0566477762f9e174e97af347ee9c865f908a5647
Headers show

Commit Message

Michael Grzeschik Nov. 28, 2013, 3:04 p.m. UTC
The stats count variable will already be incremented
in the above framework-layer just after this callback.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 drivers/mtd/nand/mxc_nand.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Greg KH Nov. 28, 2013, 7:05 p.m. UTC | #1
On Thu, Nov 28, 2013 at 04:04:40PM +0100, Michael Grzeschik wrote:
> The stats count variable will already be incremented
> in the above framework-layer just after this callback.
> 
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
>  drivers/mtd/nand/mxc_nand.c | 1 -
>  1 file changed, 1 deletion(-)

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read Documentation/stable_kernel_rules.txt
for how to do this properly.

</formletter>
diff mbox

Patch

diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 9dfdb06..a4bad11 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -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;