aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r--drivers/scsi/sg.c2
1 files changed, 1 insertions, 1 deletions
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;