From: Geyslan G. Bem Date: Sat, 28 Sep 2013 23:32:13 +0000 (-0300) Subject: 9p: remove unused 'p9_fid' struct pointer X-Git-Tag: firefly_0821_release~176^2~4565^2~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bd126e5e58bd5e6561e39c1364d57497cf7e118e;p=firefly-linux-kernel-4.4.55.git 9p: remove unused 'p9_fid' struct pointer Get rid of the useless '*fid' variable. Signed-off-by: Geyslan G. Bem Signed-off-by: Eric Van Hensbergen --- diff --git a/fs/9p/cache.c b/fs/9p/cache.c index 2b7a032c37bc..a69260f27555 100644 --- a/fs/9p/cache.c +++ b/fs/9p/cache.c @@ -239,13 +239,12 @@ void v9fs_cache_inode_flush_cookie(struct inode *inode) void v9fs_cache_inode_set_cookie(struct inode *inode, struct file *filp) { struct v9fs_inode *v9inode = V9FS_I(inode); - struct p9_fid *fid; if (!v9inode->fscache) return; spin_lock(&v9inode->fscache_lock); - fid = filp->private_data; + if ((filp->f_flags & O_ACCMODE) != O_RDONLY) v9fs_cache_inode_flush_cookie(inode); else