]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/osst.c
[SCSI] scsi_scan: fix report lun problems with CDROM or RBC devices
[linux-2.6-omap-h63xx.git] / drivers / scsi / osst.c
index 824fe080d1dc2b9d0b2e1a35b2e1a64464e615b9..7d231106790308999b22b5276718cec47f369cb2 100644 (file)
@@ -5777,7 +5777,7 @@ static int osst_probe(struct device *dev)
        dev_num = i;
 
        /* allocate a struct osst_tape for this device */
-       tpnt = (struct osst_tape *)kmalloc(sizeof(struct osst_tape), GFP_ATOMIC);
+       tpnt = kmalloc(sizeof(struct osst_tape), GFP_ATOMIC);
        if (tpnt == NULL) {
                write_unlock(&os_scsi_tapes_lock);
                printk(KERN_ERR "osst :E: Can't allocate device descriptor, device not attached.\n");