Skip to contentSkip to conversation

posix_acl: remove useless code

PATCH Jori Koolstra 1 participant 1 message Jun 29 VFS

lore
Share & tools
lore

Jori Koolstra

author Reviewed-by
#0 lore raw
Quoted 12 lines · Luis Henriques

This is just a trivial clean-up: it removes an unnecessary return branch.

---
 fs/posix_acl.c | 2 --
 1 file changed, 2 deletions(-)
fs/posix_acl.c +0 -0
index b4bfe4ddf64e..6df5de23aac4 100644

fs/posix_acl.c static int posix_acl_fix_xattr_common(const void *value, size_t size) · line 745

Quoted 8 lines
fs/posix_acl.c +0 -2
@@ -740,8 +740,6 @@ static int posix_acl_fix_xattr_common(const void *value, size_t size)
 	count = posix_acl_xattr_count(size);
 	if (count < 0)
 		return -EINVAL;
-	if (count == 0)
-		return 0;
 
 	return count;
 }

Right, well spotted. Feel free to add: