Skip to content

Commit

Permalink
autofs4: fix var shadowed by local delaration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Kent authored and Linus Torvalds committed Jan 6, 2009
1 parent 730c9ee commit 41cfef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/autofs4/dev-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 41cfef2

Please sign in to comment.