From nobody Mon Nov 29 15:43: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 C668218BC8D6; Mon, 29 Nov 2021 15:43:14 +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 4J2qPX5LNyz4nSy; Mon, 29 Nov 2021 15:43:12 +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 CC7052540C; Mon, 29 Nov 2021 15:43: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 1ATFhBFZ065898; Mon, 29 Nov 2021 15:43:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATFhBLw065897; Mon, 29 Nov 2021 15:43:11 GMT (envelope-from git) Date: Mon, 29 Nov 2021 15:43:11 GMT Message-Id: <202111291543.1ATFhBLw065897@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 959c7ab51ed2 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 959c7ab51ed2bcb7b9622194d47b461dc19919f5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638200593; 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=9poOPXGq6iaMoBXQfnwistfCwsXlL8jWLwtrEOFBUbM=; b=uFN+Gnv9rD3X5vBVhdQ1jpP+ab7x0EcGEOM/avxSKUqBoWTtLkZqRMWebt6219ykCfjxMQ zDQOxzooqdqCnmkxnsGFNaFLjDskFd8KeSNSDQaT1/of3sfbYWSou9UPKLcMCG/qGCjjci up+8Dvsj9+zHAE2U+0EUKlasn8I4SebewVeJt8Clwc+HCgmEgiA56l5LIcyb0yhzngKs+7 gi+r3uX7l9AuV0QdxdmDYMKZA4qmEJ4xNkFYYc5Ci1FzvL2BYot1ZDyDfoiNvBkzKWozYL Qpk8+cbRw4JDY0bWUVxSucD05QDuBimr6QXGtAbIJArbvzthxyoNiYdBIrl7bw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638200593; a=rsa-sha256; cv=none; b=XHIeKvZ28B//qOcGDXl8+91H+oVlrkjPBxrMvqJIht97LjKhJqttt5A13sn21X3M0AMrKw gdtUaoRZCd/QJExeUahgBAwPH++B49LS7yBf8+vlC4K5p7g7Dwd7f1xrr+nsQNnMk4Qh3l VSwarGri2a5tl70fiXbmGvsdIo60EFAfjqlvq1c3csAwAfWM5x7UdHE+zcL6YOcyppYwcj dwVUrRE026mRGXPwc6GLtsVIk36K2Xq3FvPZf10WbOGA4Z5JnYc/edJULD9r2mREqRGVLL upG+nm9tqS0gRjfY6/05QcxDeQBfB6fNQgYRXcZW6BhzY8AaEqktlDjticLg4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=959c7ab51ed2bcb7b9622194d47b461dc19919f5 commit 959c7ab51ed2bcb7b9622194d47b461dc19919f5 Author: Konstantin Belousov AuthorDate: 2021-11-28 03:12:42 +0000 Commit: Konstantin Belousov CommitDate: 2021-11-29 15:39:51 +0000 acl_delete_entry(): remove write-only variable Sponsored by: The FreeBSD Foundation MFC after: 1 week --- 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);