mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pmcraid : Remove unwanted cast for void * pointers
@ 2010-07-11 19:12 Cyril Jayaprakash
  2010-07-24  0:00 ` Anil Ravindranath
  0 siblings, 1 reply; 2+ messages in thread
From: Cyril Jayaprakash @ 2010-07-11 19:12 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-scsi, martin.petersen, vasu.dev, akpm, James.Bottomley,
	anil_ravindranath, Cyril Jayaprakash

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-24  2:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-11 19:12 [PATCH] pmcraid : Remove unwanted cast for void * pointers Cyril Jayaprakash
2010-07-24  0:00 ` Anil Ravindranath

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®