From nobody Mon Dec 06 00:28:03 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 DE4DC18BE7FD; Mon, 6 Dec 2021 00:28:04 +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 4J6kmM3wScz4Xfx; Mon, 6 Dec 2021 00:28:03 +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 382FE219CB; Mon, 6 Dec 2021 00:28:03 +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 1B60S3G7084777; Mon, 6 Dec 2021 00:28:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B60S3db084776; Mon, 6 Dec 2021 00:28:03 GMT (envelope-from git) Date: Mon, 6 Dec 2021 00:28:03 GMT Message-Id: <202112060028.1B60S3db084776@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: f4669d706486 - stable/13 - acl_delete_entry(): remove write-only variable 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f4669d706486bf4ad408f597e83338970ac49b23 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638750483; 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=2qtkZdg6uA+LZsrIBmEBox/xXrp70I3AbPxbvf9fkOk=; b=NM6FhhYx6B/Ue6dlk+LQ4Rv5nly9jZ/5NNvBJlnmT80fuuA8Q4mQHdl2wYWwkwpSlCubQM bQflropOfRIgCQcTm6sRSx/m50dKYWJrU6g1q66ZIbaH4dP8RYzzgGmjhjSQfAx09taF1W g01GvA/41DXxhPhT4tVDW+F/s0u1oXQb0uT3/GD+tpJPD1yb/38ofClz83r+odu3JP6QBK KdVBCruczPGFhsgWefGfFCSv3S0dFx81bwi6R7jhVeGvfwa0GeLGLrfgXJfYFZ0CnmtgRM vPSle9+BtWV9nXGxbGhwazT1ExoGh1IfIdxR1FHMuxASxHFoGlXwh/ilWWdW1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638750483; a=rsa-sha256; cv=none; b=Sxm/Ct9SQSxoGH9cm1MS1duGp7yt3pdbTug9dRoO6B6XlGScsCCrMuL5NFlg/ejJOgxs1b PmzqXL0l4ayRvoJDQ5VNU8f6FZl1zYfVKsNMEU80ehyiU1iVFmsGJruDXwEOQr2WkgEO02 0pA8k6yexMaOC7e/J6nX6ugsSTY4Q08cmG49J5DLP/0y46+2pA1+Sk8hlGU/cfFLOUGoBi gER6ECYirXuAZRhFnyhk20TUz6dDkn3fi5jrB78RhhzLXgshGMhs74p4sEMoOTJpT9uZb8 V5a/Cw5BA0Pu1AF3Mb36Iby4/LHr5/WXUWbzmXn7fYftK4nKHCKGDvgLdHQqQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f4669d706486bf4ad408f597e83338970ac49b23 commit f4669d706486bf4ad408f597e83338970ac49b23 Author: Konstantin Belousov AuthorDate: 2021-11-28 03:12:42 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-06 00:23:45 +0000 acl_delete_entry(): remove write-only variable (cherry picked from commit 959c7ab51ed2bcb7b9622194d47b461dc19919f5) --- lib/libc/posix1e/acl_delete_entry.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/libc/posix1e/acl_delete_entry.c b/lib/libc/posix1e/acl_delete_entry.c index 59462c8ae6ab..189669ad7530 100644 --- a/lib/libc/posix1e/acl_delete_entry.c +++ b/lib/libc/posix1e/acl_delete_entry.c @@ -76,7 +76,6 @@ _entry_matches(const acl_entry_t a, const acl_entry_t b) int acl_delete_entry(acl_t acl, acl_entry_t entry_d) { - struct acl *acl_int; struct acl_entry entry_int; int i, j, found = 0; @@ -85,8 +84,6 @@ acl_delete_entry(acl_t acl, acl_entry_t entry_d) return (-1); } - acl_int = &acl->ats_acl; - if (_entry_brand(entry_d) != _acl_brand(acl)) { errno = EINVAL; return (-1);