projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
730c9ee
)
autofs4: fix var shadowed by local delaration
author
Ian Kent
<
[email protected]
>
Tue, 6 Jan 2009 22:42:07 +0000
(14:42 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 6 Jan 2009 23:59:23 +0000
(15:59 -0800)
A local definition of devid in autofs_dev_ioctl_ismountpoint() shadows
the fuction wide definition.
Signed-off-by: Ian Kent <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/autofs4/dev-ioctl.c
patch
|
blob
|
history
diff --git
a/fs/autofs4/dev-ioctl.c
b/fs/autofs4/dev-ioctl.c
index 054d6d9ad9baa0d883b26db48e4eebad990d734f..0566ff8db4cd711f9b84b151dd95b23e82c19519 100644
(file)
--- 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 dev
id = 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, dev
id
);
+ 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);