From: Aneesh Kumar K.V Date: Thu, 24 Mar 2011 17:34:41 +0000 (+0530) Subject: fs/9p: Fix error reported by coccicheck X-Git-Tag: accepted/tizen/common/20141203.182822~7774^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=936bb2d7034165fd6ef7afea54057da65c329a27;p=platform%2Fkernel%2Flinux-arm64.git fs/9p: Fix error reported by coccicheck Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen --- 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);