summaryrefslogtreecommitdiff
path: root/fs/9p/vfs_inode_dotl.c
diff options
context:
space:
mode:
authorGeyslan G. Bem <geyslan@gmail.com>2013-09-29 03:32:18 +0400
committerEric Van Hensbergen <ericvh@gmail.com>2013-11-24 02:10:31 +0400
commit5d62a378ffff85ac9e581c228a9b505fb486e697 (patch)
tree2ebf574fba1f4e5cfb2e22a2cfccb876a6595733 /fs/9p/vfs_inode_dotl.c
parentbd126e5e58bd5e6561e39c1364d57497cf7e118e (diff)
downloadlinux-5d62a378ffff85ac9e581c228a9b505fb486e697.tar.xz
9p: remove never used return variable
Get rid of the useless 'err' variable, since the return is treated farther down without the use of it. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_inode_dotl.c')
-rw-r--r--fs/9p/vfs_inode_dotl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c
index 4c10edec26a0..589ef6afc160 100644
--- a/fs/9p/vfs_inode_dotl.c
+++ b/fs/9p/vfs_inode_dotl.c
@@ -473,13 +473,11 @@ static int
v9fs_vfs_getattr_dotl(struct vfsmount *mnt, struct dentry *dentry,
struct kstat *stat)
{
- int err;
struct v9fs_session_info *v9ses;
struct p9_fid *fid;
struct p9_stat_dotl *st;
p9_debug(P9_DEBUG_VFS, "dentry: %p\n", dentry);
- err = -EPERM;
v9ses = v9fs_dentry2v9ses(dentry);
if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
generic_fillattr(dentry->d_inode, stat);