Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geyslan G. Bem and committed by
Eric Van Hensbergen
bd126e5e 4d555e3d

+1 -2
+1 -2
fs/9p/cache.c
··· 239 239 void v9fs_cache_inode_set_cookie(struct inode *inode, struct file *filp) 240 240 { 241 241 struct v9fs_inode *v9inode = V9FS_I(inode); 242 - struct p9_fid *fid; 243 242 244 243 if (!v9inode->fscache) 245 244 return; 246 245 247 246 spin_lock(&v9inode->fscache_lock); 248 - fid = filp->private_data; 247 + 249 248 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) 250 249 v9fs_cache_inode_flush_cookie(inode); 251 250 else