summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/xattr.c
diff options
context:
space:
mode:
authorKinglong Mee2017-02-25 12:23:40 +0100
committerJaegeuk Kim2017-02-27 19:07:45 +0100
commit0ec4a5b647fca5a5649573c23d31230b25fdc827 (patch)
treeffb51ceff17aa9555adc34d95a720836a99da772 /fs/f2fs/xattr.c
parentf2fs: Don't update the xattr data that same as the exist (diff)
downloadkernel-qcow2-linux-0ec4a5b647fca5a5649573c23d31230b25fdc827.tar.gz
kernel-qcow2-linux-0ec4a5b647fca5a5649573c23d31230b25fdc827.tar.xz
kernel-qcow2-linux-0ec4a5b647fca5a5649573c23d31230b25fdc827.zip
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>
Diffstat (limited to 'fs/f2fs/xattr.c')
-rw-r--r--fs/f2fs/xattr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c
index dbfd5cbfa46c..7298a4488f7f 100644
--- a/fs/f2fs/xattr.c
+++ b/fs/f2fs/xattr.c
@@ -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);