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/softraid.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/dev/softraid.c') diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 44ac757c6c0..ad03205b17a 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.206 2010/06/15 10:59:52 dlg Exp $ */ +/* $OpenBSD: softraid.c,v 1.207 2010/06/28 18:31:01 krw Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom * Copyright (c) 2008 Chris Kuethe @@ -169,10 +169,6 @@ struct scsi_adapter sr_switch = { sr_scsi_cmd, sr_minphys, NULL, NULL, sr_scsi_ioctl }; -struct scsi_device sr_dev = { - NULL, NULL, NULL, NULL -}; - /* native metadata format */ int sr_meta_native_bootprobe(struct sr_softc *, struct device *, struct sr_metadata_list_head *); @@ -2946,7 +2942,6 @@ sr_ioctl_createraid(struct sr_softc *sc, struct bioc_createraid *bc, int user) sd->sd_link.openings = sd->sd_openings(sd); else sd->sd_link.openings = sd->sd_max_wu; - sd->sd_link.device = &sr_dev; sd->sd_link.device_softc = sc; sd->sd_link.adapter_softc = sc; sd->sd_link.adapter = &sr_switch; -- cgit v1.2.3