diff options
author | Chao Yu | 2016-05-04 23:19:46 +0800 |
---|---|---|
committer | Jaegeuk Kim | 2016-05-07 10:32:28 -0700 |
commit | e3bc808ca869f0070d438257e4085602636498da (patch) | |
tree | c77a7adc65666c06f05e615c53522d3cbe90fc90 /fs/f2fs | |
parent | ae8d1db34ff57b11feceeaaa26940015b14e30fb (diff) |
f2fs: remove unneeded memset when updating xattr
Each of fields in struct f2fs_xattr_entry will be assigned later,
so previously we don't need to memset the struct.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/xattr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index 152971243ad8..55c69d3d2ce3 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c @@ -528,7 +528,6 @@ static int __f2fs_setxattr(struct inode *inode, int index, * Before we come here, old entry is removed. * We just write new entry. */ - memset(last, 0, newsize); last->e_name_index = index; last->e_name_len = len; memcpy(last->e_name, name, len); |