# HG changeset patch # User charles # Date 1122769684 -3600 # Node ID f1a93c3396736e69de101368a8a589c1bf506efb # Parent 7027519703669743ee0747dc502fb97d9d6e4187 Replace linux/config.h with yportenv.h and remove some dead code diff --git a/yaffs_ecc.c b/yaffs_ecc.c --- a/yaffs_ecc.c +++ b/yaffs_ecc.c @@ -31,9 +31,7 @@ const char *yaffs_ecc_c_version = "$Id$"; -#ifdef __KERNEL__ -#include -#endif +#include "yportenv.h" #include "yaffs_ecc.h" @@ -259,26 +257,6 @@ int yaffs_ECCCorrectOther(unsigned char { // 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;