From 32d204697861b907520e94f82e392d3e7d6d661a Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Mon, 28 Jun 2010 18:31:03 +0000 Subject: 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@ --- sys/dev/vscsi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/dev/vscsi.c') 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 @@ -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; -- cgit v1.2.3