aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pmcraid.c
diff options
context:
space:
mode:
authorCyril Jayaprakash <cyril.jayaprakash@gmail.com>2010-07-11 15:12:00 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-28 10:05:26 -0400
commit660bdddb52843d361e47c30294366ae0deac821b (patch)
tree0854a61c395f6429a507ede7f9dabebe95fed94a /drivers/scsi/pmcraid.c
parent4b6c83f57874c2ac10b450ba0f57db0a0f22db67 (diff)
[SCSI] pmcraid : Remove unnecessary casts for void * pointers
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>
Diffstat (limited to 'drivers/scsi/pmcraid.c')
-rw-r--r--drivers/scsi/pmcraid.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
index 9ebcea3643b2..ecc45c8b4e6b 100644
--- a/drivers/scsi/pmcraid.c
+++ b/drivers/scsi/pmcraid.c
@@ -3599,8 +3599,7 @@ static int pmcraid_chr_open(struct inode *inode, struct file *filep)
3599 */ 3599 */
3600static int pmcraid_chr_release(struct inode *inode, struct file *filep) 3600static int pmcraid_chr_release(struct inode *inode, struct file *filep)
3601{ 3601{
3602 struct pmcraid_instance *pinstance = 3602 struct pmcraid_instance *pinstance = filep->private_data;
3603 ((struct pmcraid_instance *)filep->private_data);
3604 3603
3605 filep->private_data = NULL; 3604 filep->private_data = NULL;
3606 fasync_helper(-1, filep, 0, &pinstance->aen_queue); 3605 fasync_helper(-1, filep, 0, &pinstance->aen_queue);
@@ -3619,7 +3618,7 @@ static int pmcraid_chr_fasync(int fd, struct file *filep, int mode)
3619 struct pmcraid_instance *pinstance; 3618 struct pmcraid_instance *pinstance;
3620 int rc; 3619 int rc;
3621 3620
3622 pinstance = (struct pmcraid_instance *)filep->private_data; 3621 pinstance = filep->private_data;
3623 mutex_lock(&pinstance->aen_queue_lock); 3622 mutex_lock(&pinstance->aen_queue_lock);
3624 rc = fasync_helper(fd, filep, mode, &pinstance->aen_queue); 3623 rc = fasync_helper(fd, filep, mode, &pinstance->aen_queue);
3625 mutex_unlock(&pinstance->aen_queue_lock); 3624 mutex_unlock(&pinstance->aen_queue_lock);
@@ -4110,7 +4109,7 @@ static long pmcraid_chr_ioctl(
4110 return retval; 4109 return retval;
4111 } 4110 }
4112 4111
4113 pinstance = (struct pmcraid_instance *)filep->private_data; 4112 pinstance = filep->private_data;
4114 4113
4115 if (!pinstance) { 4114 if (!pinstance) {
4116 pmcraid_info("adapter instance is not found\n"); 4115 pmcraid_info("adapter instance is not found\n");