can: at91_can: make can_id of mailbox 0 configurable
[cascardo/linux.git] / drivers / scsi / sg.c
index 5428d53..909ed9e 100644 (file)
@@ -212,7 +212,7 @@ static void sg_put_dev(Sg_device *sdp);
 
 static int sg_allow_access(struct file *filp, unsigned char *cmd)
 {
-       struct sg_fd *sfp = (struct sg_fd *)filp->private_data;
+       struct sg_fd *sfp = filp->private_data;
 
        if (sfp->parentdp->device->type == TYPE_SCANNER)
                return 0;