diff options
| -rw-r--r-- | sys/dev/ata/atapi-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-all.c b/sys/dev/ata/atapi-all.c index dc4e6488915a..0f3c98ed6b8d 100644 --- a/sys/dev/ata/atapi-all.c +++ b/sys/dev/ata/atapi-all.c @@ -128,7 +128,7 @@ notfound: atp = NULL; } /* store our softc */ - atp->controller->dev_softc[(atp->unit==ATA_MASTER)?0:1] = atp; + atp->controller->dev_softc[ATA_DEV(atp->unit)] = atp; } int32_t |
