mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 04:30:52 +07:00
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: Luis de Bethencourt <luisbg@osg.samsung.com>
This commit is contained in:
parent
39dcfd3b34
commit
f7769f9cf9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user