summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2010-09-07 18:45:56 +0000
committerderaadt <deraadt@openbsd.org>2010-09-07 18:45:56 +0000
commit084de7d258f64f4a4fe0207e7ac0113a5751c995 (patch)
treea7b702a0ea2501cb35be1424ef7721debe5ddd7c
parentsupply missing offset; (diff)
downloadwireguard-openbsd-084de7d258f64f4a4fe0207e7ac0113a5751c995.tar.xz
wireguard-openbsd-084de7d258f64f4a4fe0207e7ac0113a5751c995.zip
no need for an activate function if it just returns 0
-rw-r--r--sys/dev/ramdisk.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/ramdisk.c b/sys/dev/ramdisk.c
index 7de7d1b0e81..817269bf22c 100644
--- a/sys/dev/ramdisk.c
+++ b/sys/dev/ramdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ramdisk.c,v 1.47 2010/08/28 20:23:22 matthew Exp $ */
+/* $OpenBSD: ramdisk.c,v 1.48 2010/09/07 18:45:56 deraadt Exp $ */
/* $NetBSD: ramdisk.c,v 1.8 1996/04/12 08:30:09 leo Exp $ */
/*
@@ -118,11 +118,10 @@ struct cfdriver rd_cd = {
*/
int rd_probe(struct device *, void *, void *);
int rd_detach(struct device *, int);
-int rd_activate(struct device *, int);
struct cfattach rd_ca = {
sizeof(struct rd_softc), rd_probe, rd_attach,
- rd_detach, rd_activate
+ rd_detach
};
void rdstrategy(struct buf *bp);
@@ -549,12 +548,6 @@ rd_detach(struct device *self, int flags)
return (0);
}
-int
-rd_activate(struct device *self, int act)
-{
- return (0);
-}
-
#if RAMDISK_SERVER
/*