f2fs: avoid uneeded check of xattr name
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 f2fs: avoid uneeded check of xattr name
In all the callers of f2fs_set(get)xattr(),
the xattr name can not be NULL.
Signed-off-by Zhang Zhen <[email protected]>
--- fs/f2fs/xattr.c | 5 ----- 1 file changed, 5 deletions(-)
fs/f2fs/xattr.c +0 -5
@@ -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 ;
Signature · 15 lines
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