From nobody Wed Nov 24 21:32:11 2021 X-Original-To: dev-commits-src-all@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 381CA18AB2C6; Wed, 24 Nov 2021 21:32:12 +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 4HzvNW4lmbz4RFL; Wed, 24 Nov 2021 21:32:11 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 84AC1116F6; Wed, 24 Nov 2021 21:32:11 +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 1AOLWBul036082; Wed, 24 Nov 2021 21:32:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AOLWBwq036081; Wed, 24 Nov 2021 21:32:11 GMT (envelope-from git) Date: Wed, 24 Nov 2021 21:32:11 GMT Message-Id: <202111242132.1AOLWBwq036081@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 873606999f88 - main - unionfs: plug a set-but-not-unused var List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 873606999f880afbc9b9eae85ee7737aead57b83 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637789531; 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=OaDOs6QARtHMEG6MVHhi2RNTg85J+3RboKCxDfSGBmA=; b=SUYOzAn3gR1x4hbxXRdXEfXRVJawzg+rd6zjObu+8YBcJh8AH/mEx7HEsUiggCV62Vm/Oj kpFbc/7JH5RZZIvTENuChqfEEMytIU/n7t+9VcA0ukvmd+ktiSMoqkaAutEOUoxkvshaeR F+cGWVgkTtreqi7muJDrd52OhJmiWW7yjocfWyuS41fAnytrPmlE9Rh2fldWsilk9MO6uY GgSjiI9VKyHd3jfw+ZxAmpSwdrN9IKacPj9wiTW7JqNeAcTxTGLW+m3GNU7bPzSFnkWodb 7ADA49vUOSeEmAcigyxxpRRA6qrThSCQAPwfMB0tblwP0wO5PK4Sd4dIbgLQzg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637789531; a=rsa-sha256; cv=none; b=WJGEURcLQ9/K6rVSJwKw2PI2MYwV06VubSnqbAFQPYlxZREPUPC0gRlCerI6Jn0lJWKLoa qvN/P9E13BE8UIpFFZ/C6fM/j2n+U8LyMbX+RuOtnt9f8wC3330gPPyYvqfgW/XAP/YKa1 DYtlQyzSO1Sg4MIRXoSJlrmcA95/CzN3pGw4SWI6Jg3J71rt1bpTM6kouQIGQtiad4gdP6 68dmdC8/CRmv2CQIQGhS9x+VpM2sVWvyuFcIrKUiof+DoPgwEMkA1vdjyAAKxXriz/VKfk lv3k0seS+snfQz71DPk9VP7aW2VboepDBEHWDdxpNSVyn+d5Xqi4AEa/fzJn/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=873606999f880afbc9b9eae85ee7737aead57b83 commit 873606999f880afbc9b9eae85ee7737aead57b83 Author: Mateusz Guzik AuthorDate: 2021-11-24 21:31:35 +0000 Commit: Mateusz Guzik 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;