From: Geyslan G. Bem Date: Sat, 28 Sep 2013 23:32:19 +0000 (-0300) Subject: 9p: remove useless variable and assignment X-Git-Tag: upstream/snapshot3+hdmi~3567^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72fe18c9c71c1911b02d4765661ea1522053b5df;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Eric Van Hensbergen --- diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index 589ef6a..ecacec0 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) int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr) { int retval; - struct v9fs_session_info *v9ses; struct p9_fid *fid; struct p9_iattr_dotl p9attr; struct inode *inode = dentry->d_inode; @@ -575,8 +574,6 @@ int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr) p9attr.mtime_sec = iattr->ia_mtime.tv_sec; p9attr.mtime_nsec = iattr->ia_mtime.tv_nsec; - retval = -EPERM; - v9ses = v9fs_dentry2v9ses(dentry); fid = v9fs_fid_lookup(dentry); if (IS_ERR(fid)) return PTR_ERR(fid);