Remove one more place of master/slave terms usage.
This commit is contained in:
parent
b72cca38a6
commit
6d4019d23a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188912
@ -932,8 +932,7 @@ ata_atapi(device_t dev)
|
||||
struct ata_channel *ch = device_get_softc(device_get_parent(dev));
|
||||
struct ata_device *atadev = device_get_softc(dev);
|
||||
|
||||
return ((atadev->unit == ATA_MASTER && ch->devices & ATA_ATAPI_MASTER) ||
|
||||
(atadev->unit == ATA_SLAVE && ch->devices & ATA_ATAPI_SLAVE));
|
||||
return (ch->devices & (ATA_ATAPI_MASTER << atadev->unit));
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user