diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-04-12 13:25:38 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-04-12 13:25:38 +0000 |
commit | 77bdf403faef83eaf7817dc9a87f98839ab3e04e (patch) | |
tree | 22a42b153bf7958512f40942b9a550e16ae44768 /sys | |
parent | 577123278147935d1c463d442b9268aa4d58bfde (diff) |
simplify vndopen() a bit.
ok pedro@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/vnd.c | 5 |
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); |