diff options
author | Geyslan G. Bem <geyslan@gmail.com> | 2013-09-28 19:32:13 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2013-11-23 17:10:31 -0500 |
commit | bd126e5e58bd5e6561e39c1364d57497cf7e118e (patch) | |
tree | fab8b97f3a7d1565269a1af3dccd9d72b2cd79a9 /fs/9p/cache.c | |
parent | 4d555e3de4624e6c211c4e1e46aa52f7632a149c (diff) |
9p: remove unused 'p9_fid' struct pointer
Get rid of the useless '*fid' variable.
Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/cache.c')
-rw-r--r-- | fs/9p/cache.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
239 | void v9fs_cache_inode_set_cookie(struct inode *inode, struct file *filp) | 239 | void v9fs_cache_inode_set_cookie(struct inode *inode, struct file *filp) |
240 | { | 240 | { |
241 | struct v9fs_inode *v9inode = V9FS_I(inode); | 241 | struct v9fs_inode *v9inode = V9FS_I(inode); |
242 | struct p9_fid *fid; | ||
243 | 242 | ||
244 | if (!v9inode->fscache) | 243 | if (!v9inode->fscache) |
245 | return; | 244 | return; |
246 | 245 | ||
247 | spin_lock(&v9inode->fscache_lock); | 246 | spin_lock(&v9inode->fscache_lock); |
248 | fid = filp->private_data; | 247 | |
249 | if ((filp->f_flags & O_ACCMODE) != O_RDONLY) | 248 | if ((filp->f_flags & O_ACCMODE) != O_RDONLY) |
250 | v9fs_cache_inode_flush_cookie(inode); | 249 | v9fs_cache_inode_flush_cookie(inode); |
251 | else | 250 | else |