summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-02 19:18:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-02 19:18:22 +0000
commit476808bbe2d5fddd50ac715de2738c1726a5e2a0 (patch)
tree841904a5f8c8a3dcfc0c45c470948b1ce45f44f5
parenta084df37d12e77a60f08f8869600779e95aaea6e (diff)
No need to set error to 0, when it is still 0 from the start of the function.
ok thib matthew
-rw-r--r--sys/dev/vnd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index f7d8e24a2fc..f2526063d99 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.122 2011/06/02 19:17:24 deraadt Exp $ */
+/* $OpenBSD: vnd.c,v 1.123 2011/06/02 19:18:21 deraadt Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -235,7 +235,6 @@ vndopen(dev_t dev, int flags, int mode, struct proc *p)
sc->sc_dk.dk_openmask =
sc->sc_dk.dk_copenmask | sc->sc_dk.dk_bopenmask;
- error = 0;
bad:
vndunlock(sc);
return (error);