]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/xattr.c
xattr: Remove unnecessary NULL attribute name check
[mirror_ubuntu-zesty-kernel.git] / fs / xattr.c
index c243905835abd25b52eb8daf061b5f11b3a5708e..1f72c92173980851ebc023b83191ec53dc6710fd 100644 (file)
@@ -675,9 +675,6 @@ xattr_resolve_name(const struct xattr_handler **handlers, const char **name)
 {
        const struct xattr_handler *handler;
 
-       if (!*name)
-               return ERR_PTR(-EINVAL);
-
        for_each_xattr_handler(handlers, handler) {
                const char *n;