git: 959c7ab51ed2 - main - acl_delete_entry(): remove write-only variable

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 29 Nov 2021 15:43:11 UTC
The branch main has been updated by kib:

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

commit 959c7ab51ed2bcb7b9622194d47b461dc19919f5
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-28 03:12:42 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
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);