diff options
Diffstat (limited to 'drivers/mtd/nand/omap2.c')
| -rw-r--r-- | drivers/mtd/nand/omap2.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index bf642ceef68..6f55d92dc23 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c @@ -1451,7 +1451,7 @@ static int omap_elm_correct_data(struct mtd_info *mtd, u_char *data,  	/* Check if any error reported */  	if (!is_error_reported) -		return 0; +		return stat;  	/* Decode BCH error using ELM module */  	elm_decode_bch_error_page(info->elm_dev, ecc_vec, err_vec);  |