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/ic/twe.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/dev/ic/twe.c') diff --git a/sys/dev/ic/twe.c b/sys/dev/ic/twe.c index 3d1b02dac5f..2e1751dfaa6 100644 --- a/sys/dev/ic/twe.c +++ b/sys/dev/ic/twe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: twe.c,v 1.36 2010/05/20 00:55:17 krw Exp $ */ +/* $OpenBSD: twe.c,v 1.37 2010/06/28 18:31:02 krw Exp $ */ /* * Copyright (c) 2000-2002 Michael Shalayeff. All rights reserved. @@ -70,10 +70,6 @@ struct scsi_adapter twe_switch = { twe_scsi_cmd, tweminphys, 0, 0, }; -struct scsi_device twe_dev = { - NULL, NULL, NULL, NULL -}; - static __inline struct twe_ccb *twe_get_ccb(struct twe_softc *sc); static __inline void twe_put_ccb(struct twe_ccb *ccb); void twe_dispose(struct twe_softc *sc); @@ -383,7 +379,6 @@ twe_attach(sc) sc->sc_link.adapter_softc = sc; sc->sc_link.adapter = &twe_switch; sc->sc_link.adapter_target = TWE_MAX_UNITS; - sc->sc_link.device = &twe_dev; sc->sc_link.openings = TWE_MAXCMDS / nunits; sc->sc_link.adapter_buswidth = TWE_MAX_UNITS; -- cgit v1.2.3