mtd/drivers/mtd/maps ocelot.c,1.15,1.16 uclinux.c,1.9,1.10

David Woodhouse dwmw2 at infradead.org
Wed Jan 5 13:05:16 EST 2005


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

Modified Files:
	ocelot.c uclinux.c 
Log Message:
patch] mtd: remove void * casts

Signed-off-by: Domen Puncer <domen at coderock.org>


Index: ocelot.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/ocelot.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ocelot.c	4 Nov 2004 13:24:15 -0000	1.15
+++ ocelot.c	5 Jan 2005 18:05:13 -0000	1.16
@@ -28,7 +28,7 @@
 
 static void ocelot_ram_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
 {
-        struct map_info *map = (struct map_info *)mtd->priv;
+        struct map_info *map = mtd->priv;
 	size_t done = 0;
 
 	/* If we use memcpy, it does word-wide writes. Even though we told the 

Index: uclinux.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/uclinux.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- uclinux.c	4 Nov 2004 13:24:15 -0000	1.9
+++ uclinux.c	5 Jan 2005 18:05:13 -0000	1.10
@@ -47,7 +47,7 @@
 int uclinux_point(struct mtd_info *mtd, loff_t from, size_t len,
 	size_t *retlen, u_char **mtdbuf)
 {
-	struct map_info *map = (struct map_info *) mtd->priv;
+	struct map_info *map = mtd->priv;
 	*mtdbuf = (u_char *) (map->virt + ((int) from));
 	*retlen = len;
 	return(0);
@@ -81,7 +81,7 @@
 	mtd = do_map_probe("map_ram", mapp);
 	if (!mtd) {
 		printk("uclinux[mtd]: failed to find a mapping?\n");
-		iounmap((void *) mapp->virt);
+		iounmap(mapp->virt);
 		return(-ENXIO);
 	}
 		





More information about the linux-mtd-cvs mailing list