summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/qle.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/pci/qle.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/pci/qle.c')
-rw-r--r--sys/dev/pci/qle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c
index 383ff3d504d..ea2dba1074a 100644
--- a/sys/dev/pci/qle.c
+++ b/sys/dev/pci/qle.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qle.c,v 1.52 2020/03/25 05:30:18 jmatthew Exp $ */
+/* $OpenBSD: qle.c,v 1.53 2020/06/24 18:59:30 krw Exp $ */
/*
* Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org>
@@ -657,7 +657,7 @@ qle_attach(struct device *parent, struct device *self, void *aux)
/* we should be good to go now, attach scsibus */
sc->sc_link.adapter = &qle_switch;
sc->sc_link.adapter_softc = sc;
- sc->sc_link.adapter_target = QLE_MAX_TARGETS;
+ sc->sc_link.adapter_target = SDEV_NO_ADAPTER_TARGET;
sc->sc_link.adapter_buswidth = QLE_MAX_TARGETS;
sc->sc_link.openings = sc->sc_maxcmds;
sc->sc_link.pool = &sc->sc_iopool;