mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>
To: Cyril Jayaprakash <cyril.jayaprakash@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
	martin.petersen@oracle.com, vasu.dev@intel.com,
	akpm@linux-foundation.org, James.Bottomley@suse.de,
	anil_ravindranath@pmc-sierra.com
Subject: Re: [PATCH] pmcraid : Remove unwanted cast for void * pointers
Date: Fri, 23 Jul 2010 17:00:03 -0700 (PDT)	[thread overview]
Message-ID: <alpine.LNX.1.10.1007231658580.24277@rslab235.pmc-sierra.bc.ca> (raw)
In-Reply-To: <1278875520-18592-1-git-send-email-cyril.jayaprakash@gmail.com>


Signed-off-by: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>

On Mon, 12 Jul 2010, Cyril Jayaprakash wrote:

> From: Cyril Jayaprakash <cyril.jayaprakash@gmail.com>
> 
> Patch to remove unwanted cast for void * pointers.
> 
> Signed-off-by: Cyril Jayaprakash <cyril.jayaprakash@gmail.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
> 
> 

      reply	other threads:[~2010-07-24  2:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-11 19:12 Cyril Jayaprakash
2010-07-24  0:00 ` Anil Ravindranath [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.1.10.1007231658580.24277@rslab235.pmc-sierra.bc.ca \
    --to=anil_ravindranath@pmc-sierra.com \
    --cc=James.Bottomley@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=cyril.jayaprakash@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=vasu.dev@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®