cm4000_cs.c: Remove unnecessary cast
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.
Signed-off-by H Hartley Sweeten <[email protected]>
Cc Harald Welte <[email protected]>
---
drivers/char/pcmcia/cm4000_cs.c +1 -1
@@ -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;
Dominik Brodowski
AppliedHey,
Quoted 6 lines · H Hartley Sweeten
cm4000_cs.c: Remove unnecessary castThe struct file '
private_data' member is a void *, the cast is not needed.Signed-off-by H Hartley Sweeten <[email protected]>Cc Harald Welte <[email protected]>
Applied to linux-pcmcia, in queue for 2.6.34-rc1.
Thanks,
Dominik