summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/adw.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2010-06-28 18:31:01 +0000
committerkrw <krw@openbsd.org>2010-06-28 18:31:01 +0000
commit8952d2e01a836be8c6602edcd10a105fd837aee4 (patch)
tree7f8c56b5fcd6e61d834328df10e42768fb7badee /sys/dev/ic/adw.c
parentUpdate the Safe module to version 2.2.7 for CVE-2010-1168 and (diff)
downloadwireguard-openbsd-8952d2e01a836be8c6602edcd10a105fd837aee4.tar.xz
wireguard-openbsd-8952d2e01a836be8c6602edcd10a105fd837aee4.zip
Remove all adapter-specific 'struct scsi_device's. They are never used. First
step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@
Diffstat (limited to 'sys/dev/ic/adw.c')
-rw-r--r--sys/dev/ic/adw.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/ic/adw.c b/sys/dev/ic/adw.c
index d510df69c64..805b6be0c9f 100644
--- a/sys/dev/ic/adw.c
+++ b/sys/dev/ic/adw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adw.c,v 1.45 2010/06/26 04:04:24 krw Exp $ */
+/* $OpenBSD: adw.c,v 1.46 2010/06/28 18:31:01 krw Exp $ */
/* $NetBSD: adw.c,v 1.23 2000/05/27 18:24:50 dante Exp $ */
/*
@@ -86,16 +86,6 @@ struct cfdriver adw_cd = {
NULL, "adw", DV_DULL
};
-/* the below structure is so we have a default dev struct for our link struct */
-struct scsi_device adw_dev =
-{
- NULL, /* Use default error handler */
- NULL, /* have a queue, served by this */
- NULL, /* have no async handler */
- NULL, /* Use default 'done' routine */
-};
-
-
/******************************************************************************/
/* DMA Mapping for Control Blocks */
/******************************************************************************/
@@ -562,7 +552,6 @@ adw_attach(sc)
sc->sc_link.adapter_softc = sc;
sc->sc_link.adapter_target = sc->chip_scsi_id;
sc->sc_link.adapter = &sc->sc_adapter;
- sc->sc_link.device = &adw_dev;
sc->sc_link.openings = 4;
sc->sc_link.adapter_buswidth = ADW_MAX_TID+1;