diff options
author | 2011-05-30 21:15:03 +0000 | |
---|---|---|
committer | 2011-05-30 21:15:03 +0000 | |
commit | 0e82e697cfc3ac24d7aef48f334fa427bb4de1f0 (patch) | |
tree | 58cc78e1d07a853426330a37653e8d28fc86b01c | |
parent | Fix a typo, spotted by Michal Mazurek.. (diff) | |
download | wireguard-openbsd-0e82e697cfc3ac24d7aef48f334fa427bb4de1f0.tar.xz wireguard-openbsd-0e82e697cfc3ac24d7aef48f334fa427bb4de1f0.zip |
Remove vndshutdown. It is unused.
``sure'' deraadt@
-rw-r--r-- | sys/dev/vnd.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c index fda155530ac..258bd2ec99f 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnd.c,v 1.114 2011/04/25 19:29:11 deraadt Exp $ */ +/* $OpenBSD: vnd.c,v 1.115 2011/05/30 21:15:03 oga Exp $ */ /* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */ /* @@ -135,7 +135,6 @@ void vndattach(int); void vndclear(struct vnd_softc *); int vndsetcred(struct vnd_softc *, struct ucred *); -void vndshutdown(void); int vndgetdisklabel(dev_t, struct vnd_softc *, struct disklabel *, int); void vndencrypt(struct vnd_softc *, caddr_t, size_t, daddr64_t, int); size_t vndbdevsize(struct vnode *, struct proc *); @@ -786,16 +785,6 @@ vndsetcred(struct vnd_softc *vnd, struct ucred *cred) } void -vndshutdown(void) -{ - struct vnd_softc *vnd; - - for (vnd = &vnd_softc[0]; vnd < &vnd_softc[numvnd]; vnd++) - if (vnd->sc_flags & VNF_INITED) - vndclear(vnd); -} - -void vndclear(struct vnd_softc *vnd) { struct vnode *vp = vnd->sc_vp; |