1
0
Fork 0

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>
wifi-calibration
Ian Kent 2009-01-06 14:42:07 -08:00 committed by Linus Torvalds
parent 730c9eeca9
commit 41cfef2eb8
1 changed files with 3 additions and 3 deletions

View File

@ -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);