Skip to content

Commit

Permalink
9p: remove unused 'p9_fid' struct pointer
Browse files Browse the repository at this point in the history
Get rid of the useless '*fid' variable.

Signed-off-by: Geyslan G. Bem <[email protected]>
Signed-off-by: Eric Van Hensbergen <[email protected]>
  • Loading branch information
geyslan authored and ericvh committed Nov 23, 2013
1 parent 4d555e3 commit bd126e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/9p/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd126e5

Please sign in to comment.