Skip to content

Commit

Permalink
[SCSI] pmcraid : Remove unnecessary casts for void * pointers
Browse files Browse the repository at this point in the history
Signed-off-by: Cyril Jayaprakash <cyril.jayaprakash@gmail.com>
Acked-by: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Cyril Jayaprakash authored and James Bottomley committed Jul 28, 2010
1 parent 4b6c83f commit 660bddd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/scsi/pmcraid.c
Original file line number Diff line number Diff line change
Expand Up @@ -3599,8 +3599,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);
Expand All @@ -3619,7 +3618,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);
Expand Down Expand Up @@ -4110,7 +4109,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");
Expand Down

0 comments on commit 660bddd

Please sign in to comment.