[libata] fix ATAPI-enable typo
Dumb typo spotted by Mark Lord.
This commit is contained in:
parent
1623c81eec
commit
6f10623304
@ -1470,7 +1470,7 @@ ata_scsi_find_dev(struct ata_port *ap, struct scsi_device *scsidev)
|
|||||||
if (unlikely(!ata_dev_present(dev)))
|
if (unlikely(!ata_dev_present(dev)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (atapi_enabled) {
|
if (!atapi_enabled) {
|
||||||
if (unlikely(dev->class == ATA_DEV_ATAPI))
|
if (unlikely(dev->class == ATA_DEV_ATAPI))
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user