]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ocfs2/acl.c
ocfs2: clean up dead code in ocfs2_acl_from_xattr()
[karo-tx-linux.git] / fs / ocfs2 / acl.c
index 8a404576fb26557eb8578e21f66d0277a94a9e76..b4f788e0ca318955ab797f2350f8dffa320a53cb 100644 (file)
@@ -51,10 +51,6 @@ static struct posix_acl *ocfs2_acl_from_xattr(const void *value, size_t size)
                return ERR_PTR(-EINVAL);
 
        count = size / sizeof(struct posix_acl_entry);
-       if (count < 0)
-               return ERR_PTR(-EINVAL);
-       if (count == 0)
-               return NULL;
 
        acl = posix_acl_alloc(count, GFP_NOFS);
        if (!acl)