diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-17 00:36:43 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-17 00:36:43 +0000 |
commit | 9116cd254a15da199a1541cff563105e4751a04a (patch) | |
tree | b8f7905512528078bac541ea71a894ac118b384c /sys/dev/ata/atascsi.c | |
parent | 81f712817b9477081310a030266cbdca40604ad3 (diff) |
Always a joker hiding somewhere.
Access adapter_buswidth via link->bus->sb_adapter_buswidth.
Diffstat (limited to 'sys/dev/ata/atascsi.c')
-rw-r--r-- | sys/dev/ata/atascsi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c index 1a32f90942b..677714bedd9 100644 --- a/sys/dev/ata/atascsi.c +++ b/sys/dev/ata/atascsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atascsi.c,v 1.139 2020/07/16 21:18:29 krw Exp $ */ +/* $OpenBSD: atascsi.c,v 1.140 2020/07/17 00:36:42 krw Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -218,7 +218,7 @@ atascsi_lookup_port(struct scsi_link *link) struct atascsi *as = link->bus->sb_adapter_softc; struct atascsi_host_port *ahp; - if (link->target >= as->as_link.adapter_buswidth) + if (link->target >= link->bus->sb_adapter_buswidth) return (NULL); ahp = as->as_host_ports[link->target]; @@ -243,7 +243,7 @@ atascsi_probe(struct scsi_link *link) int i, xfermode = -1; port = link->target; - if (port >= as->as_link.adapter_buswidth) + if (port >= link->bus->sb_adapter_buswidth) return (ENXIO); /* if this is a PMP port, check it's valid */ @@ -443,7 +443,7 @@ atascsi_free(struct scsi_link *link) int port; port = link->target; - if (port >= as->as_link.adapter_buswidth) + if (port >= link->bus->sb_adapter_buswidth) return; ahp = as->as_host_ports[port]; |