X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_ecc.c;h=58d0f604ba61895e1828f3b0675598c38e88d5a4;hp=820041a2b633deeaa60029f1f43668f6fcd8a815;hb=9625e7b16224f286bb177324f2c1283b9db08286;hpb=dccf947cb075996a9f2d833c55760af7d5e42be9 diff --git a/yaffs_ecc.c b/yaffs_ecc.c index 820041a..58d0f60 100644 --- a/yaffs_ecc.c +++ b/yaffs_ecc.c @@ -29,8 +29,9 @@ // Bit 0 of each entry indicates whether the entry has an odd or even parity, and therefore // this bytes influence on the line parity. -const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.2 2005-03-16 04:00:36 charles Exp $"; +const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.4 2005-07-31 00:28:04 charles Exp $"; +#include "yportenv.h" #include "yaffs_ecc.h" @@ -256,26 +257,6 @@ int yaffs_ECCCorrectOther(unsigned char *data, unsigned nBytes, yaffs_ECCOther * { // Single bit (recoverable) error in data -#if 0 - unsigned byte; - unsigned bit; -#endif - -#ifdef CONFIG_YAFFS_ECC_WRONG_ORDER - // swap the bytes to correct for the wrong order - unsigned char t; - -#if 0 // NCB - t = d0; - d0 = d1; - d1 = t; -#else - t = cDelta; - cDelta = lDelta; - lDelta = t; -#endif -#endif - bit = 0; if(cDelta & 0x20) bit |= 0x04;