Commit f7769f9c authored by Luis de Bethencourt's avatar Luis de Bethencourt

befs: avoid dereferencing dentry twice

No need to dereference dentry twice to get the name when we already have
it stored in a local variable.
Signed-off-by: default avatarLuis de Bethencourt <luisbg@osg.samsung.com>
parent 39dcfd3b
......@@ -179,7 +179,7 @@ befs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
kfree(utfname);
} else {
ret = befs_btree_find(sb, ds, dentry->d_name.name, &offset);
ret = befs_btree_find(sb, ds, name, &offset);
}
if (ret == BEFS_BT_NOT_FOUND) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment