summaryrefslogtreecommitdiffstats
path: root/fs/autofs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-06-07 17:11:52 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-07 17:34:40 -0700
commit016e92da037e0b43dd5e5848c19b0b9749506963 (patch)
tree3759b1c0f221f364bdd3b81ab556a0f55abe9b0e /fs/autofs
parent6471e93863d6494e74e99ae2bdffac9c46571f81 (diff)
downloadlinux-016e92da037e0b43dd5e5848c19b0b9749506963.tar.gz
linux-016e92da037e0b43dd5e5848c19b0b9749506963.tar.bz2
linux-016e92da037e0b43dd5e5848c19b0b9749506963.zip
autofs: small cleanup in autofs_getpath()
We don't set "*name" so it's slightly nicer to just pass "name" instead of "&name". Link: http://lkml.kernel.org/r/20180531064736.lnisb55eajwjynvk@kili.mountain Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Acked-by: Ian Kent <raven@themaw.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/autofs')
-rw-r--r--fs/autofs/waitq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c
index 8c858126c751..f6385c6ef0a5 100644
--- a/fs/autofs/waitq.c
+++ b/fs/autofs/waitq.c
@@ -179,7 +179,7 @@ static void autofs_notify_daemon(struct autofs_sb_info *sbi,
}
static int autofs_getpath(struct autofs_sb_info *sbi,
- struct dentry *dentry, char **name)
+ struct dentry *dentry, char *name)
{
struct dentry *root = sbi->sb->s_root;
struct dentry *tmp;
@@ -189,7 +189,7 @@ static int autofs_getpath(struct autofs_sb_info *sbi,
unsigned seq;
rename_retry:
- buf = *name;
+ buf = name;
len = 0;
seq = read_seqbegin(&rename_lock);
@@ -395,7 +395,7 @@ int autofs_wait(struct autofs_sb_info *sbi,
if (IS_ROOT(dentry) && autofs_type_trigger(sbi->type))
qstr.len = sprintf(name, "%p", dentry);
else {
- qstr.len = autofs_getpath(sbi, dentry, &name);
+ qstr.len = autofs_getpath(sbi, dentry, name);
if (!qstr.len) {
kfree(name);
return -ENOENT;