Skip to contentSkip to conversation

Subject: [PATCH 1/2] fs/v9fs: Remove the unused variable "err" in v9fs_vfs_getattr()

PATCH Gu Zheng 1 participant 1 message Jun 26, 2013 9P file system

lore
Share & tools
lore

Gu Zheng

author
#0 lore raw

Delete the unused variable "err" in v9fs_vfs_getattr()

---
 fs/9p/vfs_inode.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/9p/vfs_inode.c +0 -2
index d86edc8..25b018e 100644
@@ -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);
Signature · 1 line
1.7.7