aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-09-04 21:52:46 -0400
committerJiri Kosina <jkosina@suse.cz>2010-09-23 07:43:52 -0400
commit35df83970ecdc2cffb141503cf721a740d0f0ec5 (patch)
tree29593601fac047c53a0e092a41c72796b7424968 /drivers/scsi
parent27e49945ac7090b818e44cb9e8ae4b94fd711e41 (diff)
drivers/scsi: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/aacraid/linit.c2
-rw-r--r--drivers/scsi/sg.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index cad6f9abaeb9..aa4003699027 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -770,7 +770,7 @@ static long aac_compat_cfg_ioctl(struct file *file, unsigned cmd, unsigned long
770{ 770{
771 if (!capable(CAP_SYS_RAWIO)) 771 if (!capable(CAP_SYS_RAWIO))
772 return -EPERM; 772 return -EPERM;
773 return aac_compat_do_ioctl((struct aac_dev *)file->private_data, cmd, arg); 773 return aac_compat_do_ioctl(file->private_data, cmd, arg);
774} 774}
775#endif 775#endif
776 776
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index 2968c6b83ddb..307aba9f13ab 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -210,7 +210,7 @@ static void sg_put_dev(Sg_device *sdp);
210 210
211static int sg_allow_access(struct file *filp, unsigned char *cmd) 211static int sg_allow_access(struct file *filp, unsigned char *cmd)
212{ 212{
213 struct sg_fd *sfp = (struct sg_fd *)filp->private_data; 213 struct sg_fd *sfp = filp->private_data;
214 214
215 if (sfp->parentdp->device->type == TYPE_SCANNER) 215 if (sfp->parentdp->device->type == TYPE_SCANNER)
216 return 0; 216 return 0;