Skip to contentSkip to conversation

f2fs: drop the duplicate pval in f2fs_getxattr

PATCH In review Kinglong Mee 1 participant 1 message Feb 25, 2017 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 f2fs: drop the duplicate pval in f2fs_getxattr

Fixes ba38c27eb9 ("f2fs: enhance lookup xattr")
---
 fs/f2fs/xattr.c | 3 ---
 1 file changed, 3 deletions(-)
fs/f2fs/xattr.c +0 -3
index dbfd5cb..7298a44 100644
@@ -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);
Signature · 6 lines
2.9.3


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot