diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index 152971243ad84eb0bd1a4d08f59df3020b793675..55c69d3d2ce38f4531435755766a23ccf137bb66 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);