mtd/drivers/mtd/chips jedec_probe.c,1.43,1.44

Thayne Harbaugh tharbaugh at lnxi.com
Mon Nov 17 10:57:38 EST 2003


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

Modified Files:
	jedec_probe.c 
Log Message:
Comparissons only work if two things are compared!

Index: jedec_probe.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/jedec_probe.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- jedec_probe.c	16 Nov 2003 23:09:54 -0000	1.43
+++ jedec_probe.c	17 Nov 2003 15:57:35 -0000	1.44
@@ -1554,7 +1554,7 @@
 	p_cfi->id = jedec_table[index].dev_id;
 
 	uaddr = finfo_uaddr(&jedec_table[index], p_cfi->device_type);
-	if ( MTD_UADDR_NOT_SUPPORTED ) {
+	if ( uaddr == MTD_UADDR_NOT_SUPPORTED ) {
 		kfree( p_cfi->cfiq );
 		return 0;
 	}




More information about the linux-mtd-cvs mailing list