mtd/drivers/mtd/nand nand.c,1.66,1.67
gleixner at infradead.org
gleixner at infradead.org
Sun Mar 28 16:02:50 EST 2004
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv6060
Modified Files:
nand.c
Log Message:
Replace fixed size column masks
Index: nand.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- nand.c 28 Mar 2004 19:49:58 -0000 1.66
+++ nand.c 28 Mar 2004 21:02:47 -0000 1.67
@@ -873,7 +873,7 @@
page = ((int) from) >> this->page_shift;
/* Mask to get column */
- col = from & 0x0f;
+ col = from & (this->oobsize - 1);
/* Initialize return length value */
*retlen = 0;
@@ -1050,7 +1050,7 @@
page = ((int) to) >> this->page_shift;
/* Mask to get column */
- column = to & 0x1f;
+ column = to & (this->oobsize - 1);
/* Initialize return length value */
*retlen = 0;
More information about the linux-mtd-cvs
mailing list