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
2ed4b498d8
commit
aa2a9a1c47
1 changed files with 0 additions and 3 deletions
|
@ -514,7 +514,6 @@ int f2fs_getxattr(struct inode *inode, int index, const char *name,
|
||||||
struct f2fs_xattr_entry *entry = NULL;
|
struct f2fs_xattr_entry *entry = NULL;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
unsigned int size, len;
|
unsigned int size, len;
|
||||||
char *pval;
|
|
||||||
void *base_addr = NULL;
|
void *base_addr = NULL;
|
||||||
|
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
|
@ -536,8 +535,6 @@ int f2fs_getxattr(struct inode *inode, int index, const char *name,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
pval = entry->e_name + entry->e_name_len;
|
|
||||||
|
|
||||||
if (buffer) {
|
if (buffer) {
|
||||||
char *pval = entry->e_name + entry->e_name_len;
|
char *pval = entry->e_name + entry->e_name_len;
|
||||||
memcpy(buffer, pval, size);
|
memcpy(buffer, pval, size);
|
||||||
|
|
Loading…
Add table
Reference in a new issue