diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-05 20:17:26 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-05 20:17:26 +0000 |
commit | 694656f66d5eeb2b1275f06488ace57c813f2f0e (patch) | |
tree | e22e0a17e906a5f84a6784cbd9e77820677f950e /sys/dev/eisa | |
parent | b2f74e37793918132b02e9da1a7b2c3f63e8d698 (diff) |
Nuke struct scsi_link's "scsibus" member. The two drivers using it
(ahc(4) and qlw(4)) can just compare the values of the "bus" member
directly.
A slightly different path to the same result that matthew@ traversed
in his work culminating in scsiconf.h r1.146.
Diffstat (limited to 'sys/dev/eisa')
-rw-r--r-- | sys/dev/eisa/ahc_eisa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/eisa/ahc_eisa.c b/sys/dev/eisa/ahc_eisa.c index d6f4017a50b..f658eac26aa 100644 --- a/sys/dev/eisa/ahc_eisa.c +++ b/sys/dev/eisa/ahc_eisa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahc_eisa.c,v 1.21 2012/05/12 21:54:39 miod Exp $ */ +/* $OpenBSD: ahc_eisa.c,v 1.22 2020/07/05 20:17:25 krw Exp $ */ /* $NetBSD: ahc_eisa.c,v 1.10 1996/10/21 22:30:58 thorpej Exp $ */ /* @@ -32,7 +32,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ahc_eisa.c,v 1.21 2012/05/12 21:54:39 miod Exp $ + * $Id: ahc_eisa.c,v 1.22 2020/07/05 20:17:25 krw Exp $ */ #include <sys/param.h> @@ -184,9 +184,9 @@ void *aux; /* * SCSI_IS_SCSIBUS_B() must returns false until sc_channel_b - * has been properly initialized. XXX Breaks if >254 scsi buses. + * has been properly initialized. */ - ahc->sc_channel_b.scsibus = 0xff; + ahc->sc_channel_b.bus = NULL; ahc->channel = 'A'; ahc->chip = AHC_AIC7770|AHC_EISA; |