mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove one more place of master/slave terms usage.
This commit is contained in:
parent
b72cca38a6
commit
6d4019d23a
1 changed files with 1 additions and 2 deletions
|
|
@ -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 a new issue