Skip to contentSkip to conversation

posix_acl: remove useless code

PATCH Applied Luis Henriques 2 participants 2 messages Jun 29 – Jun 30 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 posix_acl: remove useless code

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 -2
index b4bfe4ddf64e..6df5de23aac4 100644
@@ -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;
 }
maintainer Applied
#1 lore raw
Quoted 1 line · Luis Henriques

posix_acl: remove useless code

Applied to the vfs-7.3.misc branch of the vfs/vfs.git tree. Patches in the vfs-7.3.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.3.misc

[1/1] posix_acl: remove useless code

      https://git.kernel.org/vfs/vfs/c/af695109e830