summaryrefslogtreecommitdiffstats
path: root/fs/afs/dir.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-06-24 16:45:44 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2018-08-05 21:50:59 +0200
commit1401a0fc2d47988677dc1dbfd56ff89daa323717 (patch)
tree8d8875d124057a28eabe0b2118013164de1d2b57 /fs/afs/dir.c
parentafs_lookup(): switch to d_splice_alias() (diff)
downloadlinux-1401a0fc2d47988677dc1dbfd56ff89daa323717.tar.xz
linux-1401a0fc2d47988677dc1dbfd56ff89daa323717.zip
afs_try_auto_mntpt(): return NULL instead of ERR_PTR(-ENOENT)
simpler logics in callers that way Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/afs/dir.c')
-rw-r--r--fs/afs/dir.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index 52f44255f65d..855bf2b79fed 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -866,8 +866,6 @@ static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry,
key_put(key);
if (inode == ERR_PTR(-ENOENT)) {
inode = afs_try_auto_mntpt(dentry, dir);
- if (inode == ERR_PTR(-ENOENT))
- inode = NULL;
} else {
dentry->d_fsdata =
(void *)(unsigned long)dvnode->status.data_version;