fs/9p: Remove the unused variable "err" in v9fs_vfs_getattr()
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Fri, 28 Jun 2013 17:44:13 +0000 (12:44 -0500)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 8 Jul 2013 03:18:31 +0000 (22:18 -0500)
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>
fs/9p/vfs_inode.c

index d86edc8..25b018e 100644 (file)
@@ -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);