From nobody Fri Mar 31 17:59:18 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pp7Mq2Bp3z433h3; Fri, 31 Mar 2023 17:59:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pp7Mq1G9Bz4YYq; Fri, 31 Mar 2023 17:59:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680285559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wO+nRnjFuRKabEKnTK8cMSOX9encVMWHF3iJoL7eklo=; b=dHKAvQPk/yP2a4veO/8WzSeHDfDG1+eEtY5WaDPCzAXaUvHPFzdLVnwF63tgdBbX3Pe8aW Xvw7XzcSau6C/dzEDSM/FsawJljEQ1QC8j3tanbzYqVNg/3rSjv/gbbNNUKaCpHts000xY 30VD8peVY86mmt4T1ix4HTWlTgc0CRRtmeglr+UaQKMZcI3FP7I7YRtECnbYEWKcUMjB3H 3DNfsrOm13xf/PbfcxotqQ3BV1rgVSMZQ8yNxu/148Xg10AzBzK+Nc2C208uGCYqglxSJe 7x+AF7lC1lSXpiWKzbiPWCvnlpbnrAtJ2g1QdOJHsEGBq/rrwxqyecfEEV6WJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680285559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wO+nRnjFuRKabEKnTK8cMSOX9encVMWHF3iJoL7eklo=; b=oLBasXTJKRsBLClk7sikw/kKDDK/+/mAHuJaM/16fvV2ESnvGuDxRSAE/y8spQxmGUP2mF I39ZkVIzXZLdgUI3Cm61Gs2m1DhiVJdyVkiwr7dLmV8ySI34R2MYtdWSLiohfH26kyb+ef wumCXxOVUD185C1LUa3ktw7TsH4qfPKLcj/LMyniqSTGFIn3ifQ/n6kJqDTm0RFiGBa8q1 RTSUf6kmvO/uXkEWKvZv3DSuWn4F2NwLW8PBbTUsDY7t8L0Ft1dyfAJTe7cu4/e555zpA6 LiVylGog/bzEEblw3kOns1rl0giQ5RYeTsO/ssBkS1fpzzZwX3BjuxXsEgknAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680285559; a=rsa-sha256; cv=none; b=TmCijZWq68WpWLO+sz/nSC+xL2ar9KpsjKoCDpFnn9ruEl09lcgeLwvAA9bK3sM0lAbVyZ OWRc2MpCzqX9wfc1bAP24MGG3CC2xq5V2Ng5tos3DP5bJhzr+WlkCWT8gzTvieJlU6oFQe g9QdAJpXYzxbBwb5VZzvNYNCThF5tDAtjGh0uKVo6hNCGMlaC42jskWwcRHohCKPraFL5S fvEy9b9QXS7J3cjUKu1izWpb6icbKchcnT4+HmYVfwmNeXbUqGDs18wHxHi0qFJvRyC/C8 1d0OSyRt3sIGLkXdLHutqML2Bl7q55syL9K/3GEqmaUVxHbLWeo/Ap942iustA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Pp7Mq0Jykz13Bw; Fri, 31 Mar 2023 17:59:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32VHxIMM078863; Fri, 31 Mar 2023 17:59:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32VHxIh1078862; Fri, 31 Mar 2023 17:59:18 GMT (envelope-from git) Date: Fri, 31 Mar 2023 17:59:18 GMT Message-Id: <202303311759.32VHxIh1078862@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: cb750f7f5afb - main - fuse: Remove set but unused cr_gid variable. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cb750f7f5afb3df6d32aa6557d9b9f217fdb1eff Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=cb750f7f5afb3df6d32aa6557d9b9f217fdb1eff commit cb750f7f5afb3df6d32aa6557d9b9f217fdb1eff Author: John Baldwin AuthorDate: 2023-03-31 17:57:13 +0000 Commit: John Baldwin 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;