]> err.no Git - linux-2.6/blobdiff - drivers/scsi/scsi_scan.c
Automatic merge of /spare/repo/netdev-2.6 branch forcedeth
[linux-2.6] / drivers / scsi / scsi_scan.c
index a8a37a338c02f70ea4e04c9cbcab29559c0d3492..cca772624ae701ea8278ce770c10c8617e710c5e 100644 (file)
@@ -249,7 +249,6 @@ static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget,
         */
        sdev->borken = 1;
 
-       spin_lock_init(&sdev->sdev_lock);
        sdev->request_queue = scsi_alloc_queue(sdev);
        if (!sdev->request_queue) {
                /* release fn is set up in scsi_sysfs_device_initialise, so
@@ -802,7 +801,7 @@ static int scsi_probe_and_add_lun(struct scsi_target *starget,
        if (!sreq)
                goto out_free_sdev;
        result = kmalloc(256, GFP_ATOMIC |
-                       (shost->unchecked_isa_dma) ? __GFP_DMA : 0);
+                       ((shost->unchecked_isa_dma) ? __GFP_DMA : 0));
        if (!result)
                goto out_free_sreq;