Skip to contentSkip to conversation

mtd: remove several bogus casts to void * in iounmap() argument

PATCH New Al Viro 1 participant 1 message Oct 10, 2006

Subsystems (2)
lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 mtd: remove several bogus casts to void * in iounmap() argument

---
 drivers/mtd/maps/physmap.c     |    2 +-
 drivers/mtd/nand/cs553x_nand.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/maps/physmap.c +1 -1
index bc7cc71..d171776 100644
@@ -62,7 +62,7 @@ #endif
 	}
 
 	if (info->map.virt != NULL)
-		iounmap((void *)info->map.virt);
+		iounmap(info->map.virt);
 
 	if (info->res != NULL) {
 		release_resource(info->res);
drivers/mtd/nand/cs553x_nand.c +1 -1
index e0a1d38..94924d5 100644
@@ -249,7 +249,7 @@ static int __init cs553x_init_one(int cs
 	goto out;
 
 out_ior:
-	iounmap((void *)this->IO_ADDR_R);
+	iounmap(this->IO_ADDR_R);
 out_mtd:
 	kfree(new_mtd);
 out:
Signature · 1 line
1.4.2.GIT