From: Joseph Qi Date: Wed, 11 Sep 2013 21:19:51 +0000 (-0700) Subject: ocfs2: clean up dead code in ocfs2_acl_from_xattr() X-Git-Tag: v3.12-rc1~52^2~290 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d94ea51c1d8db6f41268a9d2aea5f5771e9a8d3;p=pandora-kernel.git ocfs2: clean up dead code in ocfs2_acl_from_xattr() In ocfs2_acl_from_xattr(), if size is less than sizeof(struct posix_acl_entry), it returns ERR_PTR(-EINVAL) directly. Then assign (size / sizeof(struct posix_acl_entry)) to count which will be at least 1, that means the following branch (count < 0) and (count == 0) will never be true. Signed-off-by: Joseph Qi Cc: Mark Fasheh Acked-by: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed