From ad6ca4f7a6cc3f81bb16b2362f8b7ff0839b639f Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 7 Sep 2010 17:14:06 +0000 Subject: having a ca_activate function which just returns 1 is wrong on about 8 different levels; ok oga kettenis --- sys/dev/softraid.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'sys/dev/softraid.c') diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 2b0e275035c..f86d0fcc94b 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.212 2010/08/30 19:05:08 deraadt Exp $ */ +/* $OpenBSD: softraid.c,v 1.213 2010/09/07 17:14:06 deraadt Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom * Copyright (c) 2008 Chris Kuethe @@ -76,11 +76,9 @@ uint32_t sr_debug = 0 int sr_match(struct device *, void *, void *); void sr_attach(struct device *, struct device *, void *); int sr_detach(struct device *, int); -int sr_activate(struct device *, int); struct cfattach softraid_ca = { sizeof(struct sr_softc), sr_match, sr_attach, sr_detach, - sr_activate }; struct cfdriver softraid_cd = { @@ -1616,12 +1614,6 @@ sr_detach(struct device *self, int flags) return (0); } -int -sr_activate(struct device *self, int act) -{ - return (1); -} - void sr_minphys(struct buf *bp, struct scsi_link *sl) { -- cgit v1.2.3-59-g8ed1b