diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-06-24 10:45:44 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-08-05 15:50:59 -0400 |
commit | 1401a0fc2d47988677dc1dbfd56ff89daa323717 (patch) | |
tree | 8d8875d124057a28eabe0b2118013164de1d2b57 /fs/afs/dir.c | |
parent | 34b2a88fb4aa4de34e1d5f9fc2761b746980f9b1 (diff) |
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.c | 2 |
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; |