diff options
| author | Kinglong Mee <kinglongmee@gmail.com> | 2017-02-25 19:23:40 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:35:03 +0200 |
| commit | b8137573359535e2b87768ac43f47fb7174d2521 (patch) | |
| tree | d2c2200bfab90ef3b14d02ac8b98bdabb4d5c381 | |
| parent | e673f802969d5aa4c9b733b414d8e25032f22301 (diff) | |
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>
| -rw-r--r-- | fs/f2fs/xattr.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index fe99b8da7..1c11b4537 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c @@ -515,7 +515,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) @@ -537,8 +536,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); |
