]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
NFSD: Remove unnecessary posix_acl_entry pointer initialization
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 23 Sep 2024 08:05:46 +0000 (10:05 +0200)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 11 Nov 2024 18:41:58 +0000 (13:41 -0500)
The posix_acl_entry pointer pe is already initialized by the
FOREACH_ACL_ENTRY() macro. Remove the unnecessary initialization.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4acl.c

index 96e786b5e5444137c4e7560f92806d0e9abd02c0..936ea1ad9586770201b7b0e8729913fe462108ad 100644 (file)
@@ -198,8 +198,6 @@ summarize_posix_acl(struct posix_acl *acl, struct posix_acl_summary *pas)
        memset(pas, 0, sizeof(*pas));
        pas->mask = 07;
 
-       pe = acl->a_entries + acl->a_count;
-
        FOREACH_ACL_ENTRY(pa, acl, pe) {
                switch (pa->e_tag) {
                        case ACL_USER_OBJ: