git: f4669d706486 - stable/13 - acl_delete_entry(): remove write-only variable

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 06 Dec 2021 00:28:03 UTC
The branch stable/13 has been updated by kib:

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

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