mtd/drivers/mtd/nand nand_base.c,1.102,1.103

gleixner at infradead.org gleixner at infradead.org
Thu Jun 17 03:44:55 EDT 2004


Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv8594

Modified Files:
	nand_base.c 
Log Message:
Check for calculate_ecc, as it is called in write_page

Index: nand_base.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_base.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -r1.102 -r1.103
--- nand_base.c	17 Jun 2004 02:38:51 -0000	1.102
+++ nand_base.c	17 Jun 2004 07:44:52 -0000	1.103
@@ -2448,8 +2448,7 @@
 			this->eccsize = 512; /* set eccsize to 512 and fall through for function check */
 
 	case NAND_ECC_HW3_256:
-		if ((this->calculate_ecc || (this->options & NAND_HWECC_SYNDROME)) && 
-			this->correct_data && this->enable_hwecc)
+		if (this->calculate_ecc && this->correct_data && this->enable_hwecc)
 			break;
 		printk (KERN_WARNING "No ECC functions supplied, Hardware ECC not possible\n");
 		BUG();	





More information about the linux-mtd-cvs mailing list