diff options
author | 2020-03-22 20:23:36 +0000 | |
---|---|---|
committer | 2020-03-22 20:23:36 +0000 | |
commit | 311c82fd7c72d377e0727a477577ea9b31f2699b (patch) | |
tree | 4d6f73c9a1bb026b6a4f5ae7fe8fea6539ff94ff | |
parent | Mark omissions of break statements as intentional. (diff) | |
download | wireguard-openbsd-311c82fd7c72d377e0727a477577ea9b31f2699b.tar.xz wireguard-openbsd-311c82fd7c72d377e0727a477577ea9b31f2699b.zip |
remove unused variable; ok beck@ mpi@
-rw-r--r-- | sys/kern/kern_unveil.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/kern_unveil.c b/sys/kern/kern_unveil.c index 99feda509ff..0822248e435 100644 --- a/sys/kern/kern_unveil.c +++ b/sys/kern/kern_unveil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_unveil.c,v 1.38 2020/03/19 14:01:57 anton Exp $ */ +/* $OpenBSD: kern_unveil.c,v 1.39 2020/03/22 20:23:36 anton Exp $ */ /* * Copyright (c) 2017-2019 Bob Beck <beck@openbsd.org> @@ -515,8 +515,6 @@ unveil_add_vnode(struct proc *p, struct vnode *vp) void unveil_add_traversed_vnodes(struct proc *p, struct nameidata *ndp) { - struct unveil *uv; - if (ndp->ni_tvpsize) { size_t i; @@ -525,7 +523,7 @@ unveil_add_traversed_vnodes(struct proc *p, struct nameidata *ndp) if (unveil_lookup(vp, p->p_p, NULL) == NULL) { vref(vp); vp->v_uvcount++; - uv = unveil_add_vnode(p, vp); + unveil_add_vnode(p, vp); } } } |