summaryrefslogtreecommitdiffstats
path: root/fs/autofs4
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2009-01-06 14:42:07 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-06 15:59:23 -0800
commit41cfef2eb87694a8d64105c059b39f7bd6b7d4fe (patch)
tree413fa68364341d94366b2d36e537464db739ad5e /fs/autofs4
parent730c9eeca9808fc2cfb506cc68c90aa330da17b0 (diff)
downloadlinux-41cfef2eb87694a8d64105c059b39f7bd6b7d4fe.tar.gz
linux-41cfef2eb87694a8d64105c059b39f7bd6b7d4fe.tar.bz2
linux-41cfef2eb87694a8d64105c059b39f7bd6b7d4fe.zip
autofs4: fix var shadowed by local delaration
A local definition of devid in autofs_dev_ioctl_ismountpoint() shadows the fuction wide definition. Signed-off-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/autofs4')
-rw-r--r--fs/autofs4/dev-ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c
index 054d6d9ad9ba..0566ff8db4cd 100644
--- a/fs/autofs4/dev-ioctl.c
+++ b/fs/autofs4/dev-ioctl.c
@@ -646,17 +646,17 @@ static int autofs_dev_ioctl_ismountpoint(struct file *fp,
magic = nd.path.dentry->d_inode->i_sb->s_magic;
}
} else {
- dev_t devid = new_encode_dev(sbi->sb->s_dev);
+ dev_t dev = autofs4_get_dev(sbi);
err = path_lookup(path, LOOKUP_PARENT, &nd);
if (err)
goto out;
- err = autofs_dev_ioctl_find_super(&nd, devid);
+ err = autofs_dev_ioctl_find_super(&nd, dev);
if (err)
goto out_release;
- devid = autofs4_get_dev(sbi);
+ devid = dev;
err = have_submounts(nd.path.dentry);