The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=873606999f880afbc9b9eae85ee7737aead57b83
commit 873606999f880afbc9b9eae85ee7737aead57b83 Author: Mateusz Guzik <m...@freebsd.org> AuthorDate: 2021-11-24 21:31:35 +0000 Commit: Mateusz Guzik <m...@freebsd.org> CommitDate: 2021-11-24 21:31:35 +0000 unionfs: plug a set-but-not-unused var Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/fs/unionfs/union_vnops.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c index 81741dc19349..93249b21ccb3 100644 --- a/sys/fs/unionfs/union_vnops.c +++ b/sys/fs/unionfs/union_vnops.c @@ -631,7 +631,6 @@ static int unionfs_check_corrected_access(accmode_t accmode, struct vattr *va, struct ucred *cred) { - int count; uid_t uid; /* upper side vnode's uid */ gid_t gid; /* upper side vnode's gid */ u_short vmode; /* upper side vnode's mode */ @@ -654,7 +653,6 @@ unionfs_check_corrected_access(accmode_t accmode, struct vattr *va, } /* check group */ - count = 0; if (groupmember(gid, cred)) { if (accmode & VEXEC) mask |= S_IXGRP;