In all the callers of f2fs_set(get)xattr(),
the xattr name can not be NULL.

Signed-off-by: Zhang Zhen <zhenzhang.zh...@huawei.com>
---
 fs/f2fs/xattr.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c
index 503c245..f382e24 100644
--- a/fs/f2fs/xattr.c
+++ b/fs/f2fs/xattr.c
@@ -404,8 +404,6 @@ int f2fs_getxattr(struct inode *inode, int name_index, 
const char *name,
        int error = 0;
        size_t value_len, name_len;

-       if (name == NULL)
-               return -EINVAL;
        name_len = strlen(name);
        if (name_len > F2FS_NAME_LEN)
                return -ERANGE;
@@ -487,9 +485,6 @@ static int __f2fs_setxattr(struct inode *inode, int 
name_index,
        __u32 new_hsize;
        int error = -ENOMEM;

-       if (name == NULL)
-               return -EINVAL;
-
        if (value == NULL)
                value_len = 0;

-- 
1.8.1.2


.





------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to