git: cb750f7f5afb - main - fuse: Remove set but unused cr_gid variable.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 31 Mar 2023 17:59:18 UTC
The branch main has been updated by jhb:

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

commit cb750f7f5afb3df6d32aa6557d9b9f217fdb1eff
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-03-31 17:57:13 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-03-31 17:57:13 +0000

    fuse: Remove set but unused cr_gid variable.
    
    Reviewed by:    asomers
    Reported by:    GCC
    Differential Revision:  https://reviews.freebsd.org/D39350
---
 sys/fs/fuse/fuse_vnops.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/fs/fuse/fuse_vnops.c b/sys/fs/fuse/fuse_vnops.c
index f97a1a52eaad..6ed44d73a8b9 100644
--- a/sys/fs/fuse/fuse_vnops.c
+++ b/sys/fs/fuse/fuse_vnops.c
@@ -2218,16 +2218,11 @@ fuse_vnop_setattr(struct vop_setattr_args *ap)
 	accmode_t accmode = 0;
 	bool checkperm;
 	bool drop_suid = false;
-	gid_t cr_gid;
 
 	mp = vnode_mount(vp);
 	data = fuse_get_mpdata(mp);
 	dataflags = data->dataflags;
 	checkperm = dataflags & FSESS_DEFAULT_PERMISSIONS;
-	if (cred->cr_ngroups > 0)
-		cr_gid = cred->cr_groups[0];
-	else
-		cr_gid = 0;
 
 	if (fuse_isdeadfs(vp)) {
 		return ENXIO;