Variable cleanup
authorRaghu Nambiath <rnambiath@ti.com>
Tue, 9 Nov 2010 22:19:30 +0000 (17:19 -0500)
committerRaghu Nambiath <rnambiath@ti.com>
Tue, 9 Nov 2010 22:19:30 +0000 (17:19 -0500)
src/ecc/3byte/3byte_ecc.c

index a9ab076a0ec65f5e018b1a5a5552fca9d98f028d..df50337c53575f974eb8028130be19e2ccfec4c2 100644 (file)
@@ -51,7 +51,7 @@
  * Defines and Macros and globals
  *********************************/
 // Pre-calculated 256-way 1 byte column parity
-static const Uint8 nand_ecc_precalc_table[] = {
+static const Uint8 nand_ecc_table[] = {
        0x00, 0x55, 0x56, 0x03, 0x59, 0x0c, 0x0f, 0x5a, 0x5a, 0x0f, 0x0c, 0x59, 0x03, 0x56, 0x55, 0x00,
        0x65, 0x30, 0x33, 0x66, 0x3c, 0x69, 0x6a, 0x3f, 0x3f, 0x6a, 0x69, 0x3c, 0x66, 0x33, 0x30, 0x65,
        0x66, 0x33, 0x30, 0x65, 0x3f, 0x6a, 0x69, 0x3c, 0x3c, 0x69, 0x6a, 0x3f, 0x65, 0x30, 0x33, 0x66,
@@ -143,7 +143,7 @@ Int32 eccComputeECC(const Uint8 *puchData, Uint8 *puchEccCode)
        for(j = 0; j < 256; j++) {
 
                /* Get CP0 - CP5 from table */
-               uchIndex = nand_ecc_precalc_table[puchData[j]];
+               uchIndex = nand_ecc_table[puchData[j]];
                uchReg1 ^= (uchIndex & 0x3f);
 
                /* All bit XOR = 1 ? */