Add back temporarily disabled ECC in nand driver
[yaffs2.git] / direct / test-framework / yaffs_nand_drv.c
index 6b3a91ea8011646f7633c0e1dd2cc589d32ffa3d..d9c4e739674a4e8390743e4e76abe8a1978ff2ab 100644 (file)
@@ -143,7 +143,6 @@ static int yaffs_nand_drv_ReadChunk(struct yaffs_dev *dev, int nand_chunk,
 
        ecc_result = YAFFS_ECC_RESULT_NO_ERROR;
 
-#if 0
        if(data) {
                for(i = 0, e = buffer + 2; i < chip->data_bytes_per_page; i+=256, e+=3) {
                        yaffs_ecc_calc(data + i, read_ecc);
@@ -154,7 +153,6 @@ static int yaffs_nand_drv_ReadChunk(struct yaffs_dev *dev, int nand_chunk,
                                ecc_result = YAFFS_ECC_RESULT_FIXED;
                }
        }
-#endif
 
        if (ecc_result_out)
                *ecc_result_out = ecc_result;