summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/vnd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 8249c7352c4..bfd31b32470 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.53 2005/01/05 06:38:15 tedu Exp $ */
+/* $OpenBSD: vnd.c,v 1.54 2005/04/12 13:25:37 joris Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -274,8 +274,7 @@ vndopen(dev, flags, mode, p)
sc->sc_dk.dk_openmask =
sc->sc_dk.dk_copenmask | sc->sc_dk.dk_bopenmask;
- vndunlock(sc);
- return (0);
+ error = 0;
bad:
vndunlock(sc);
return (error);