Skip to contentSkip to conversation

NFSD: Remove unnecessary posix_acl_entry pointer initialization

PATCH Applied Thorsten Blum 2 participants 2 messages Sep 23, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFSD: Remove unnecessary posix_acl_entry pointer initialization

The posix_acl_entry pointer pe is already initialized by the FOREACH_ACL_ENTRY() macro. Remove the unnecessary initialization.

---
 fs/nfsd/nfs4acl.c | 2 --
 1 file changed, 2 deletions(-)
fs/nfsd/nfs4acl.c +0 -2
index 96e786b5e544..936ea1ad9586 100644
@@ -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:
Signature · 1 line
2.46.1
maintainer Applied
#1 lore raw

From: Chuck Lever <[email protected]>

Quoted 4 lines · Thorsten Blum

The posix_acl_entry pointer pe is already initialized by the FOREACH_ACL_ENTRY() macro. Remove the unnecessary initialization.

Applied to nfsd-next for v6.13, thanks!

[1/1] NFSD: Remove unnecessary posix_acl_entry pointer initialization

      commit: 45672c5446544da68e7f46079c7c3c7bebcc1d3d                                                                      
Signature · 1 line
Chuck Lever