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/mfi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/dev/ic/mfi.c') diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index 5ff67943330..d710ba652d6 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.106 2010/06/15 04:11:34 dlg Exp $ */ +/* $OpenBSD: mfi.c,v 1.107 2010/06/28 18:31:02 krw Exp $ */ /* * Copyright (c) 2006 Marco Peereboom * @@ -63,10 +63,6 @@ struct scsi_adapter mfi_switch = { mfi_scsi_cmd, mfiminphys, 0, 0, mfi_scsi_ioctl }; -struct scsi_device mfi_dev = { - NULL, NULL, NULL, NULL -}; - struct mfi_ccb *mfi_get_ccb(struct mfi_softc *); void mfi_put_ccb(struct mfi_ccb *); int mfi_init_ccb(struct mfi_softc *); @@ -718,7 +714,6 @@ mfi_attach(struct mfi_softc *sc, enum mfi_iop iop) else sc->sc_link.openings = sc->sc_max_cmds; - sc->sc_link.device = &mfi_dev; sc->sc_link.adapter_softc = sc; sc->sc_link.adapter = &mfi_switch; sc->sc_link.adapter_target = MFI_MAX_LD; -- cgit v1.2.3