Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2021 21:32:11 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 873606999f88 - main - unionfs: plug a set-but-not-unused var
Message-ID:  <202111242132.1AOLWBwq036081@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=873606999f880afbc9b9eae85ee7737aead57b83

commit 873606999f880afbc9b9eae85ee7737aead57b83
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-11-24 21:31:35 +0000
Commit:     Mateusz Guzik <mjg@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111242132.1AOLWBwq036081>