From: Luis de Bethencourt Date: Fri, 1 Jul 2016 00:07:30 +0000 (+0100) Subject: befs: avoid dereferencing dentry twice X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7769f9cf95fa1a63eea81f13126f8fe7f708dc1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index cf8f9206d4eb..62889eb4a97e 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c @@ -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) {