]> Pileus Git - ~andy/linux/commitdiff
[libata] fix ATAPI-enable typo
authorJeff Garzik <jgarzik@pobox.com>
Wed, 31 Aug 2005 01:52:18 +0000 (21:52 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Wed, 31 Aug 2005 01:52:18 +0000 (21:52 -0400)
Dumb typo spotted by Mark Lord.

drivers/scsi/libata-scsi.c

index 55823765425c3e60a3c718f706c0553137cc3b13..104fd9a63e734ddc752f68de92215a208242a0d1 100644 (file)
@@ -1470,7 +1470,7 @@ ata_scsi_find_dev(struct ata_port *ap, struct scsi_device *scsidev)
        if (unlikely(!ata_dev_present(dev)))
                return NULL;
 
-       if (atapi_enabled) {
+       if (!atapi_enabled) {
                if (unlikely(dev->class == ATA_DEV_ATAPI))
                        return NULL;
        }