mtd/drivers/mtd/chips jedec.c,1.19,1.20
David Woodhouse
dwmw2 at infradead.org
Mon Jul 12 10:03:03 EDT 2004
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv24625
Modified Files:
jedec.c
Log Message:
NULL masturbation
Index: jedec.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/jedec.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- jedec.c 29 May 2003 09:25:23 -0000 1.19
+++ jedec.c 12 Jul 2004 14:03:01 -0000 1.20
@@ -128,7 +128,7 @@
{
printk("mtd: Increase MAX_JEDEC_CHIPS, too many banks.\n");
kfree(MTD);
- return 0;
+ return NULL;
}
for (Base = 0; Base < map->size; Base += my_bank_size)
@@ -141,7 +141,7 @@
if (jedec_probe8(map,Base,priv) == 0) {
printk("did recognize jedec chip\n");
kfree(MTD);
- return 0;
+ return NULL;
}
}
if (map->buswidth == 2)
@@ -167,7 +167,7 @@
{
printk("mtd: Failed. Device has incompatible mixed sector sizes\n");
kfree(MTD);
- return 0;
+ return NULL;
}
}
@@ -193,7 +193,7 @@
{
printk("mtd: Internal Error, JEDEC not set\n");
kfree(MTD);
- return 0;
+ return NULL;
}
if (Uniq != 0)
@@ -221,7 +221,7 @@
if (!priv->size) {
printk("priv->size is zero\n");
kfree(MTD);
- return 0;
+ return NULL;
}
if (priv->size/my_bank_size) {
if (priv->size/my_bank_size == 1) {
@@ -240,7 +240,7 @@
{
printk("mtd: Failed. Cannot handle unsymmetric banking\n");
kfree(MTD);
- return 0;
+ return NULL;
}
}
}
@@ -385,7 +385,7 @@
for (I = 0; JEDEC_table[I].jedec != 0; I++)
if (JEDEC_table[I].jedec == Id)
return JEDEC_table + I;
- return 0;
+ return NULL;
}
// Look for flash using an 8 bit bus interface
More information about the linux-mtd-cvs
mailing list