summaryrefslogtreecommitdiff
path: root/sys/dev/vscsi.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2010-06-28 18:31:03 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2010-06-28 18:31:03 +0000
commit32d204697861b907520e94f82e392d3e7d6d661a (patch)
tree7bad5a228621b81780b7712982b6a979ce2df424 /sys/dev/vscsi.c
parent12135c2c16aaab7651a7b1c48ed35586452fadcc (diff)
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/vscsi.c')
-rw-r--r--sys/dev/vscsi.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/vscsi.c b/sys/dev/vscsi.c
index 5ad1613b481..3e9c95acc08 100644
--- a/sys/dev/vscsi.c
+++ b/sys/dev/vscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vscsi.c,v 1.13 2010/06/27 03:34:29 matthew Exp $ */
+/* $OpenBSD: vscsi.c,v 1.14 2010/06/28 18:31:01 krw Exp $ */
/*
* Copyright (c) 2008 David Gwynne <dlg@openbsd.org>
@@ -93,10 +93,6 @@ struct scsi_adapter vscsi_switch = {
NULL
};
-struct scsi_device vscsi_dev = {
- NULL, NULL, NULL, NULL
-};
-
void vscsi_xs_stuffup(struct scsi_xfer *);
@@ -135,7 +131,6 @@ vscsi_attach(struct device *parent, struct device *self, void *aux)
rw_init(&sc->sc_open, DEVNAME(sc));
rw_init(&sc->sc_ccb_polling, DEVNAME(sc));
- sc->sc_link.device = &vscsi_dev;
sc->sc_link.adapter = &vscsi_switch;
sc->sc_link.adapter_softc = sc;
sc->sc_link.adapter_target = 256;