diff options
author | 2010-06-28 18:31:01 +0000 | |
---|---|---|
committer | 2010-06-28 18:31:01 +0000 | |
commit | 8952d2e01a836be8c6602edcd10a105fd837aee4 (patch) | |
tree | 7f8c56b5fcd6e61d834328df10e42768fb7badee /sys/dev/softraid.c | |
parent | Update the Safe module to version 2.2.7 for CVE-2010-1168 and (diff) | |
download | wireguard-openbsd-8952d2e01a836be8c6602edcd10a105fd837aee4.tar.xz wireguard-openbsd-8952d2e01a836be8c6602edcd10a105fd837aee4.zip |
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/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 7 |
1 files changed, 1 insertions, 6 deletions
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 <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -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; |