--- linux-2.4.33-wt3/drivers/mtd/nand/nand_base.c Sun Oct 22 21:24:44 2006 +++ linux-2.4.33-wt4/drivers/mtd/nand/nand_base.c Mon Nov 13 00:36:13 2006 @@ -1233,7 +1233,7 @@ * generator for an error, reads back the syndrome and * does the error correction on the fly */ ecc_status = this->correct_data(mtd, &data_poi[datidx], &oob_data[i], &ecc_code[i]); - if ((ecc_status == -1) || (ecc_status > (flags && 0xff))) { + if ((ecc_status == -1) || (ecc_status > (flags & 0xff))) { DEBUG (MTD_DEBUG_LEVEL0, "nand_read_ecc: " "Failed ECC read, page 0x%08x on chip %d\n", page, chipnr); ecc_failed++; @@ -1272,7 +1272,7 @@ p[i] = ecc_status; } - if ((ecc_status == -1) || (ecc_status > (flags && 0xff))) { + if ((ecc_status == -1) || (ecc_status > (flags & 0xff))) { DEBUG (MTD_DEBUG_LEVEL0, "nand_read_ecc: " "Failed ECC read, page 0x%08x\n", page); ecc_failed++; }