Skip to contentSkip to conversation

cm4000_cs.c: Remove unnecessary cast

PATCH Applied H Hartley Sweeten 2 participants 2 messages Jan 8, 2010 – Jan 9, 2010 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cm4000_cs.c: Remove unnecessary cast

cm4000_cs.c: Remove unnecessary cast

The struct file 'private_data' member is a void *, the cast is not needed.

---

drivers/char/pcmcia/cm4000_cs.c +1 -1
index 2db4c0a..c9bc896 100644
@@ -1047,7 +1047,7 @@ release_io:
 static ssize_t cmm_write(struct file *filp, const char __user *buf,
 			 size_t count, loff_t *ppos)
 {
-	struct cm4000_dev *dev = (struct cm4000_dev *) filp->private_data;
+	struct cm4000_dev *dev = filp->private_data;
 	unsigned int iobase = dev->p_dev->io.BasePort1;
 	unsigned short s;
 	unsigned char tmp;