diff mbox

[1/2] NFSD: Cleanup unused comments and codes in summarize_posix_acl

Message ID 534A897E.10303@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kinglong Mee April 13, 2014, 12:56 p.m. UTC
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
---
 fs/nfsd/nfs4acl.c | 7 -------
 1 file changed, 7 deletions(-)

 			case ACL_USER_OBJ:
diff mbox

Patch

diff --git a/fs/nfsd/nfs4acl.c b/fs/nfsd/nfs4acl.c
index 6f3f392..de5d66b 100644
--- a/fs/nfsd/nfs4acl.c
+++ b/fs/nfsd/nfs4acl.c
@@ -193,16 +193,9 @@  summarize_posix_acl(struct posix_acl *acl, struct
posix_acl_summary *pas)
 {
 	struct posix_acl_entry *pa, *pe;

-	/*
-	 * Only pas.users and pas.groups need initialization; previous
-	 * posix_acl_valid() calls ensure that the other fields will be
-	 * initialized in the following loop.  But, just to placate gcc:
-	 */
 	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) {