]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mtd/nand/bf5xx_nand.c
[MTD] [NAND] Blackfin NFC Driver: fix bug - do not clobber the status from the first...
[linux-2.6-omap-h63xx.git] / drivers / mtd / nand / bf5xx_nand.c
index e87a57297328c4a72cde3d01c605e94d0299eee3..3254348f85813d551d88a8c9fb859fd469e0bf7f 100644 (file)
@@ -273,7 +273,7 @@ static int bf5xx_nand_correct_data(struct mtd_info *mtd, u_char *dat,
                dat += 256;
                read_ecc += 8;
                calc_ecc += 8;
-               ret = bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc);
+               ret |= bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc);
        }
 
        return ret;