*** empty log message ***
[yaffs2.git] / yaffs_ecc.c
index 8eaffa012941d08f32e219d120c1b7f007b3df68..58d0f604ba61895e1828f3b0675598c38e88d5a4 100644 (file)
@@ -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.1 2004-11-03 08:14:07 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,20 +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;
-               
-               t = d0;
-               d0 = d1;
-               d1 = t;
-#endif
-               
                bit = 0;
 
                if(cDelta & 0x20) bit |= 0x04;