lkml.org 
[lkml]   [2013]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] 9p: remove unused 'p9_fid' struct pointer
    Date
    Get rid of the useless '*fid' variable.

    Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
    ---
    fs/9p/cache.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/fs/9p/cache.c b/fs/9p/cache.c
    index a9ea73d..50f9d9c 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
    --
    1.8.4


    \
     
     \ /
      Last update: 2013-09-29 01:41    [W:2.113 / U:0.440 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site