summaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hfsplus/xattr.c')
-rw-r--r--fs/hfsplus/xattr.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/hfsplus/xattr.c b/fs/hfsplus/xattr.c
index e41a010cd89c..ab01530b4930 100644
--- a/fs/hfsplus/xattr.c
+++ b/fs/hfsplus/xattr.c
@@ -431,9 +431,6 @@ int hfsplus_setxattr(struct dentry *dentry, const char *name,
431 char *xattr_name; 431 char *xattr_name;
432 int res; 432 int res;
433 433
434 if (!strcmp(name, ""))
435 return -EINVAL;
436
437 xattr_name = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + 1, 434 xattr_name = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + 1,
438 GFP_KERNEL); 435 GFP_KERNEL);
439 if (!xattr_name) 436 if (!xattr_name)
@@ -589,9 +586,6 @@ ssize_t hfsplus_getxattr(struct dentry *dentry, const char *name,
589 int res; 586 int res;
590 char *xattr_name; 587 char *xattr_name;
591 588
592 if (!strcmp(name, ""))
593 return -EINVAL;
594
595 xattr_name = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + 1, 589 xattr_name = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + 1,
596 GFP_KERNEL); 590 GFP_KERNEL);
597 if (!xattr_name) 591 if (!xattr_name)
@@ -853,9 +847,6 @@ static int hfsplus_osx_getxattr(const struct xattr_handler *handler,
853 struct dentry *dentry, const char *name, 847 struct dentry *dentry, const char *name,
854 void *buffer, size_t size) 848 void *buffer, size_t size)
855{ 849{
856 if (!strcmp(name, ""))
857 return -EINVAL;
858
859 /* 850 /*
860 * Don't allow retrieving properly prefixed attributes 851 * Don't allow retrieving properly prefixed attributes
861 * by prepending them with "osx." 852 * by prepending them with "osx."
@@ -876,9 +867,6 @@ static int hfsplus_osx_setxattr(const struct xattr_handler *handler,
876 struct dentry *dentry, const char *name, 867 struct dentry *dentry, const char *name,
877 const void *buffer, size_t size, int flags) 868 const void *buffer, size_t size, int flags)
878{ 869{
879 if (!strcmp(name, ""))
880 return -EINVAL;
881
882 /* 870 /*
883 * Don't allow setting properly prefixed attributes 871 * Don't allow setting properly prefixed attributes
884 * by prepending them with "osx." 872 * by prepending them with "osx."