lkml.org 
[lkml]   [2011]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/5] fs/9p: Fix error reported by coccicheck
    Date
    Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
    ---
    fs/9p/vfs_inode_dotl.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c
    index ffbb113..82a7c38 100644
    --- a/fs/9p/vfs_inode_dotl.c
    +++ b/fs/9p/vfs_inode_dotl.c
    @@ -811,7 +811,7 @@ v9fs_vfs_follow_link_dotl(struct dentry *dentry, struct nameidata *nd)
    fid = v9fs_fid_lookup(dentry);
    if (IS_ERR(fid)) {
    __putname(link);
    - link = ERR_PTR(PTR_ERR(fid));
    + link = ERR_CAST(fid);
    goto ndset;
    }
    retval = p9_client_readlink(fid, &target);
    --
    1.7.1


    \
     
     \ /
      Last update: 2011-03-25 12:33    [W:0.019 / U:123.204 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site