mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 05:34:13 +08:00
f2fs: drop the duplicate pval in f2fs_getxattr
Fixes: ba38c27eb9
("f2fs: enhance lookup xattr")
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
5f35a2cd5b
commit
0ec4a5b647
@ -467,7 +467,6 @@ int f2fs_getxattr(struct inode *inode, int index, const char *name,
|
||||
struct f2fs_xattr_entry *entry = NULL;
|
||||
int error = 0;
|
||||
unsigned int size, len;
|
||||
char *pval;
|
||||
void *base_addr = NULL;
|
||||
|
||||
if (name == NULL)
|
||||
@ -489,8 +488,6 @@ int f2fs_getxattr(struct inode *inode, int index, const char *name,
|
||||
goto out;
|
||||
}
|
||||
|
||||
pval = entry->e_name + entry->e_name_len;
|
||||
|
||||
if (buffer) {
|
||||
char *pval = entry->e_name + entry->e_name_len;
|
||||
memcpy(buffer, pval, size);
|
||||
|
Loading…
Reference in New Issue
Block a user