diff options
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 5428d53f5a13..909ed9ed24c0 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -212,7 +212,7 @@ static void sg_put_dev(Sg_device *sdp); | |||
212 | 212 | ||
213 | static int sg_allow_access(struct file *filp, unsigned char *cmd) | 213 | static int sg_allow_access(struct file *filp, unsigned char *cmd) |
214 | { | 214 | { |
215 | struct sg_fd *sfp = (struct sg_fd *)filp->private_data; | 215 | struct sg_fd *sfp = filp->private_data; |
216 | 216 | ||
217 | if (sfp->parentdp->device->type == TYPE_SCANNER) | 217 | if (sfp->parentdp->device->type == TYPE_SCANNER) |
218 | return 0; | 218 | return 0; |