int ata_scsi_dev_config(struct scsi_device *sdev, struct ata_device *dev)
 {
        struct request_queue *q = sdev->request_queue;
+       int depth = 1;
 
        if (!ata_id_has_unload(dev->id))
                dev->flags |= ATA_DFLAG_NO_UNLOAD;
        if (dev->flags & ATA_DFLAG_AN)
                set_bit(SDEV_EVT_MEDIA_CHANGE, sdev->supported_events);
 
-       if (dev->flags & ATA_DFLAG_NCQ) {
-               int depth;
-
+       if (dev->flags & ATA_DFLAG_NCQ)
                depth = min(sdev->host->can_queue, ata_id_queue_depth(dev->id));
-               depth = min(ATA_MAX_QUEUE, depth);
-               scsi_change_queue_depth(sdev, depth);
-       }
+       depth = min(ATA_MAX_QUEUE, depth);
+       scsi_change_queue_depth(sdev, depth);
 
        if (dev->flags & ATA_DFLAG_TRUSTED)
                sdev->security_supported = 1;