Skip to content

Commit 72fe18c

Browse files
geyslanericvh
authored andcommitted
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 <[email protected]> Signed-off-by: Eric Van Hensbergen <[email protected]>
1 parent fae7469 commit 72fe18c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/9p/vfs_inode_dotl.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,6 @@ static int v9fs_mapped_iattr_valid(int iattr_valid)
554554
int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr)
555555
{
556556
int retval;
557-
struct v9fs_session_info *v9ses;
558557
struct p9_fid *fid;
559558
struct p9_iattr_dotl p9attr;
560559
struct inode *inode = dentry->d_inode;
@@ -575,8 +574,6 @@ int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr)
575574
p9attr.mtime_sec = iattr->ia_mtime.tv_sec;
576575
p9attr.mtime_nsec = iattr->ia_mtime.tv_nsec;
577576

578-
retval = -EPERM;
579-
v9ses = v9fs_dentry2v9ses(dentry);
580577
fid = v9fs_fid_lookup(dentry);
581578
if (IS_ERR(fid))
582579
return PTR_ERR(fid);

0 commit comments

Comments
 (0)