diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-06-24 18:33:51 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-06-24 18:33:51 +0000 |
commit | 939b5702bd08b104394c82a94cab8c745071c941 (patch) | |
tree | 70163a8f7c3882a9b3b392cb3980d81fa6b38cf4 /sys/dev/ic | |
parent | a2398d60acadf6e9ff0958f35fe45d0dfb0c9d55 (diff) |
Use SDEV_NO_ADAPTER_TARGET instead of -1 to indicate
the adapter is not a target on the bus.
ok dlg@ as part of a larger diff.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/mfi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index 3104dcea990..b9df7ba1f75 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.176 2020/03/21 20:42:23 krw Exp $ */ +/* $OpenBSD: mfi.c,v 1.177 2020/06/24 18:33:50 krw Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@peereboom.us> * @@ -774,7 +774,7 @@ mfi_attach(struct mfi_softc *sc, enum mfi_iop iop) sc->sc_link.adapter = &mfi_switch; sc->sc_link.adapter_softc = sc; sc->sc_link.adapter_buswidth = sc->sc_info.mci_max_lds; - sc->sc_link.adapter_target = -1; + sc->sc_link.adapter_target = SDEV_NO_ADAPTER_TARGET; sc->sc_link.luns = 1; sc->sc_link.openings = sc->sc_max_cmds - 1; sc->sc_link.pool = &sc->sc_iopool; @@ -851,7 +851,7 @@ mfi_syspd(struct mfi_softc *sc) link->adapter = &mfi_pd_switch; link->adapter_softc = sc; link->adapter_buswidth = MFI_MAX_PD; - link->adapter_target = -1; + link->adapter_target = SDEV_NO_ADAPTER_TARGET; link->openings = sc->sc_max_cmds - 1; link->pool = &sc->sc_iopool; |