diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-06-02 19:18:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-06-02 19:18:22 +0000 |
commit | 476808bbe2d5fddd50ac715de2738c1726a5e2a0 (patch) | |
tree | 841904a5f8c8a3dcfc0c45c470948b1ce45f44f5 | |
parent | a084df37d12e77a60f08f8869600779e95aaea6e (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.c | 3 |
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); |