summaryrefslogtreecommitdiff
path: root/sys/dev/ata/atascsi.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-06-24 18:59:31 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-06-24 18:59:31 +0000
commitd4a9a79b9dc90e251efad41e80fece016e61e5a7 (patch)
tree3322a878bbe1997fca616eacea1a61efdc62ac31 /sys/dev/ata/atascsi.c
parent04a06dd7185ce35e9619627a6d1cd6b6bd767915 (diff)
Use SDEV_NO_ADAPTER_TARGET instead of the value that is being
aassigned to adapter_buswidth to indicate the adapter is not a target on the bus. ok dlg@ as part of a larger diff.
Diffstat (limited to 'sys/dev/ata/atascsi.c')
-rw-r--r--sys/dev/ata/atascsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c
index 645c81249f2..c4d83f0a1c0 100644
--- a/sys/dev/ata/atascsi.c
+++ b/sys/dev/ata/atascsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.c,v 1.133 2020/02/05 16:29:29 krw Exp $ */
+/* $OpenBSD: atascsi.c,v 1.134 2020/06/24 18:59:30 krw Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -184,7 +184,7 @@ atascsi_attach(struct device *self, struct atascsi_attach_args *aaa)
as->as_link.adapter_softc = as;
as->as_link.adapter_buswidth = aaa->aaa_nports;
as->as_link.luns = SATA_PMP_MAX_PORTS;
- as->as_link.adapter_target = aaa->aaa_nports;
+ as->as_link.adapter_target = SDEV_NO_ADAPTER_TARGET;
as->as_link.openings = 1;
as->as_host_ports = mallocarray(aaa->aaa_nports,