[PATCH 20/49] cm4000_cs.c: Remove unnecessary cast

Harald Welte laforge at gnumonks.org
Sat Feb 27 09:12:24 EST 2010


On Sat, Feb 27, 2010 at 11:42:15AM +0100, Dominik Brodowski wrote:
> From: H Hartley Sweeten <hartleys at visionengravers.com>
> 
> The struct file 'private_data' member is a void *, the cast is not needed.
> 
> Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
> Cc: Harald Welte <laforge at gnumonks.org>

Acked-by: Harald Welte <laforge at gnumonks.org>

> Signed-off-by: Dominik Brodowski <linux at dominikbrodowski.net>
> ---
>  drivers/char/pcmcia/cm4000_cs.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c
> index 2db4c0a..c9bc896 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;
> -- 
> 1.6.3.3
> 

-- 
- Harald Welte <laforge at gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)



More information about the linux-pcmcia mailing list