summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2020-06-24 18:59:30 +0000
committerkrw <krw@openbsd.org>2020-06-24 18:59:30 +0000
commit182e13b71abba560fa622d70c1b78d00a4533eba (patch)
treee908e954a2f1804fc4da7156e7b63748696ef698 /sys/dev/softraid.c
parentUse SDEV_NO_ADAPTER_TARGET instead of the value of adapter_buswidth to (diff)
downloadwireguard-openbsd-182e13b71abba560fa622d70c1b78d00a4533eba.tar.xz
wireguard-openbsd-182e13b71abba560fa622d70c1b78d00a4533eba.zip
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/softraid.c')
-rw-r--r--sys/dev/softraid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 95b7ddd57b4..ed03a5536c2 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.402 2020/06/08 19:17:12 kn Exp $ */
+/* $OpenBSD: softraid.c,v 1.403 2020/06/24 18:59:30 krw Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -1804,7 +1804,7 @@ sr_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.adapter_softc = sc;
sc->sc_link.adapter = &sr_switch;
- sc->sc_link.adapter_target = SR_MAX_LD;
+ sc->sc_link.adapter_target = SDEV_NO_ADAPTER_TARGET;
sc->sc_link.adapter_buswidth = SR_MAX_LD;
sc->sc_link.luns = 1;