mtd/drivers/mtd/devices phram.c,1.5,1.6

joern at infradead.org joern at infradead.org
Thu Nov 25 11:51:12 EST 2004


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

Modified Files:
	phram.c 
Log Message:
Brown Paperbag category.  Patch should be self-explaining to anyone who
knows how to deal with multi-dimensional arrays in c (i.e. not me).



Index: phram.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/phram.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- phram.c	25 Nov 2004 13:54:09 -0000	1.5
+++ phram.c	25 Nov 2004 16:51:09 -0000	1.6
@@ -188,7 +188,7 @@
 	case 'k':
 		result *= 1024;
 	/* By dwmw2 editorial decree, "ki", "Mi" or "Gi" are to be used. */
-		if (*endp[1] == 'i')
+		if ((*endp)[1] == 'i')
 			(*endp) += 2;
 	}
 	return result;





More information about the linux-mtd-cvs mailing list