aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorGeyslan G. Bem <geyslan@gmail.com>2013-09-28 19:32:19 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2013-11-23 17:10:31 -0500
commit72fe18c9c71c1911b02d4765661ea1522053b5df (patch)
treeb56316269b99de25e1f33d7757a42c15d7364028 /fs/9p
parentfae7469609aa4229aee20dd68453a0a6df5bd52e (diff)
9p: remove useless variable and assignment
There is no use of pointer 'v9ses'. Get rid of useless 'retval' assignment. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p')
-rw-r--r--fs/9p/vfs_inode_dotl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c
index 589ef6afc160..ecacec098fbb 100644
--- a/fs/9p/vfs_inode_dotl.c
+++ b/fs/9p/vfs_inode_dotl.c
@@ -554,7 +554,6 @@ static int v9fs_mapped_iattr_valid(int iattr_valid)
554int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr) 554int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr)
555{ 555{
556 int retval; 556 int retval;
557 struct v9fs_session_info *v9ses;
558 struct p9_fid *fid; 557 struct p9_fid *fid;
559 struct p9_iattr_dotl p9attr; 558 struct p9_iattr_dotl p9attr;
560 struct inode *inode = dentry->d_inode; 559 struct inode *inode = dentry->d_inode;
@@ -575,8 +574,6 @@ int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr)
575 p9attr.mtime_sec = iattr->ia_mtime.tv_sec; 574 p9attr.mtime_sec = iattr->ia_mtime.tv_sec;
576 p9attr.mtime_nsec = iattr->ia_mtime.tv_nsec; 575 p9attr.mtime_nsec = iattr->ia_mtime.tv_nsec;
577 576
578 retval = -EPERM;
579 v9ses = v9fs_dentry2v9ses(dentry);
580 fid = v9fs_fid_lookup(dentry); 577 fid = v9fs_fid_lookup(dentry);
581 if (IS_ERR(fid)) 578 if (IS_ERR(fid))
582 return PTR_ERR(fid); 579 return PTR_ERR(fid);