* [PATCH] autofs4 - fix var shadowed by local delaration
@ 2008-10-27 4:36 Ian Kent
0 siblings, 0 replies; only message in thread
From: Ian Kent @ 2008-10-27 4:36 UTC (permalink / raw)
To: Andrew Morton; +Cc: Kernel Mailing List, autofs mailing list, linux-fsdevel
A local definition of devid in autofs_dev_ioctl_ismountpoint() shadows
the fuction wide definition.
Signed-off-by: Ian Kent <raven@themaw.net>
---
fs/autofs4/dev-ioctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c
index a040639..e19d584 100644
--- a/fs/autofs4/dev-ioctl.c
+++ b/fs/autofs4/dev-ioctl.c
@@ -597,17 +597,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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-27 4:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-27 4:36 [PATCH] autofs4 - fix var shadowed by local delaration Ian Kent
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).