projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f35a2c
)
f2fs: drop the duplicate pval in f2fs_getxattr
author
Kinglong Mee
<kinglongmee@gmail.com>
Sat, 25 Feb 2017 11:23:40 +0000
(19:23 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 27 Feb 2017 18:07:45 +0000
(10:07 -0800)
Fixes:
ba38c27eb9
("f2fs: enhance lookup xattr")
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/xattr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/xattr.c
b/fs/f2fs/xattr.c
index dbfd5cbfa46c5da42341d3f95775057085a3657f..7298a4488f7f59cfc68587c4fbc3b1ac6293f9aa 100644
(file)
--- 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);