diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-07-01 01:07:30 +0100 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-10-08 10:01:15 +0100 |
commit | f7769f9cf95fa1a63eea81f13126f8fe7f708dc1 (patch) | |
tree | f786327fb04e85f0758569254708b936101cf973 /fs/befs/linuxvfs.c | |
parent | 39dcfd3b3448e03a77cd918a918cdea5d84d6076 (diff) | |
download | linux-f7769f9cf95fa1a63eea81f13126f8fe7f708dc1.tar.bz2 |
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>
Diffstat (limited to 'fs/befs/linuxvfs.c')
-rw-r--r-- | fs/befs/linuxvfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |