提交 bf0c84f1 编写于 作者: N Namhyung Kim 提交者: Trond Myklebust

NFS: use ERR_CAST()

Use ERR_CAST() intead of wierd-looking cast.
Signed-off-by: NNamhyung Kim <namhyung@gmail.com>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 5f3e97c9
......@@ -1218,7 +1218,7 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, stru
goto out_unblock_sillyrename;
}
inode = nfs_fhget(dentry->d_sb, fhandle, fattr);
res = (struct dentry *)inode;
res = ERR_CAST(inode);
if (IS_ERR(res))
goto out_unblock_sillyrename;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册