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_client' struct pointer
    Date
    Get rid of the useless '*clnt' variable.

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

    diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c
    index aa5ecf4..42b7286 100644
    --- a/fs/9p/vfs_file.c
    +++ b/fs/9p/vfs_file.c
    @@ -463,14 +463,12 @@ v9fs_file_write_internal(struct inode *inode, struct p9_fid *fid,
    int n;
    loff_t i_size;
    size_t total = 0;
    - struct p9_client *clnt;
    loff_t origin = *offset;
    unsigned long pg_start, pg_end;

    p9_debug(P9_DEBUG_VFS, "data %p count %d offset %x\n",
    data, (int)count, (int)*offset);

    - clnt = fid->clnt;
    do {
    n = p9_client_write(fid, NULL, data+total, origin+total, count);
    if (n <= 0)
    --
    1.8.4


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