summaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorGu Zheng2013-06-28 19:44:13 +0200
committerEric Van Hensbergen2013-07-08 05:18:31 +0200
commitf2692ea8d5b535277bc06b315eabd32ef4e7a11c (patch)
tree2a09558bcfe5d44064f59b093795400d91585b10 /fs/9p
parent9P: Add cancelled() to the transport functions. (diff)
downloadkernel-qcow2-linux-f2692ea8d5b535277bc06b315eabd32ef4e7a11c.tar.gz
kernel-qcow2-linux-f2692ea8d5b535277bc06b315eabd32ef4e7a11c.tar.xz
kernel-qcow2-linux-f2692ea8d5b535277bc06b315eabd32ef4e7a11c.zip
fs/9p: Remove the unused variable "err" in v9fs_vfs_getattr()
Delete the unused variable "err" in v9fs_vfs_getattr() Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p')
-rw-r--r--fs/9p/vfs_inode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index d86edc8d3fd0..25b018efb8ab 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -1054,13 +1054,11 @@ static int
v9fs_vfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
struct kstat *stat)
{
- int err;
struct v9fs_session_info *v9ses;
struct p9_fid *fid;
struct p9_wstat *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);