[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LNX.1.10.1007231658580.24277@rslab235.pmc-sierra.bc.ca>
Date: Fri, 23 Jul 2010 17:00:03 -0700 (PDT)
From: Anil Ravindranath <anil_ravindranath@...-sierra.com>
To: Cyril Jayaprakash <cyril.jayaprakash@...il.com>
cc: linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org,
martin.petersen@...cle.com, vasu.dev@...el.com,
akpm@...ux-foundation.org, James.Bottomley@...e.de,
anil_ravindranath@...-sierra.com
Subject: Re: [PATCH] pmcraid : Remove unwanted cast for void * pointers
Signed-off-by: Anil Ravindranath <anil_ravindranath@...-sierra.com>
On Mon, 12 Jul 2010, Cyril Jayaprakash wrote:
> From: Cyril Jayaprakash <cyril.jayaprakash@...il.com>
>
> Patch to remove unwanted cast for void * pointers.
>
> Signed-off-by: Cyril Jayaprakash <cyril.jayaprakash@...il.com>
> ---
> drivers/scsi/pmcraid.c | 7 +++----
> 1 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
> index c44e4ab..bd0b5a0 100644
> --- a/drivers/scsi/pmcraid.c
> +++ b/drivers/scsi/pmcraid.c
> @@ -3324,8 +3324,7 @@ static int pmcraid_chr_open(struct inode *inode, struct file *filep)
> */
> static int pmcraid_chr_release(struct inode *inode, struct file *filep)
> {
> - struct pmcraid_instance *pinstance =
> - ((struct pmcraid_instance *)filep->private_data);
> + struct pmcraid_instance *pinstance = filep->private_data;
>
> filep->private_data = NULL;
> fasync_helper(-1, filep, 0, &pinstance->aen_queue);
> @@ -3344,7 +3343,7 @@ static int pmcraid_chr_fasync(int fd, struct file *filep, int mode)
> struct pmcraid_instance *pinstance;
> int rc;
>
> - pinstance = (struct pmcraid_instance *)filep->private_data;
> + pinstance = filep->private_data;
> mutex_lock(&pinstance->aen_queue_lock);
> rc = fasync_helper(fd, filep, mode, &pinstance->aen_queue);
> mutex_unlock(&pinstance->aen_queue_lock);
> @@ -3795,7 +3794,7 @@ static long pmcraid_chr_ioctl(
> return retval;
> }
>
> - pinstance = (struct pmcraid_instance *)filep->private_data;
> + pinstance = filep->private_data;
>
> if (!pinstance) {
> pmcraid_info("adapter instance is not found\n");
> --
> 1.7.0.4
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists