From: H Hartley Sweeten Date: Fri, 8 Jan 2010 18:30:13 +0000 (-0700) Subject: cm4000_cs.c: Remove unnecessary cast X-Git-Tag: v2.6.34-rc1~270^2~29 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c6be9c5ab426693a052e67d7469df19a1c50faf4;p=karo-tx-linux.git cm4000_cs.c: Remove unnecessary cast The struct file 'private_data' member is a void *, the cast is not needed. Signed-off-by: H Hartley Sweeten Cc: Harald Welte Signed-off-by: Dominik Brodowski --- diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c index 2db4c0a29b05..c9bc896d68af 100644 --- a/drivers/char/pcmcia/cm4000_cs.c +++ b/drivers/char/pcmcia/cm4000_cs.c @@ -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;