cm4000_cs.c: Remove unnecessary cast
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 8 Jan 2010 18:30:13 +0000 (11:30 -0700)
committerDominik Brodowski <linux@dominikbrodowski.net>
Wed, 17 Feb 2010 16:37:33 +0000 (17:37 +0100)
The struct file 'private_data' member is a void *, the cast is not needed.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Harald Welte <laforge@gnumonks.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/char/pcmcia/cm4000_cs.c

index 2db4c0a29b052540ba988e05a5c217804c3d5aed..c9bc896d68afe62a416bf547f5dfc09ba63c0891 100644 (file)
@@ -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;