Commit 35df83970ecdc2cffb141503cf721a740d0f0ec5

Authored by Joe Perches
Committed by Jiri Kosina
1 parent 27e49945ac

drivers/scsi: Remove unnecessary casts of private_data

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

drivers/scsi/aacraid/linit.c
... ... @@ -770,7 +770,7 @@
770 770 {
771 771 if (!capable(CAP_SYS_RAWIO))
772 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 775 #endif
776 776  
... ... @@ -210,7 +210,7 @@
210 210  
211 211 static 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 215 if (sfp->parentdp->device->type == TYPE_SCANNER)
216 216 return 0;