Commit bf0c84f1 authored by Namhyung Kim's avatar Namhyung Kim Committed by Trond Myklebust

NFS: use ERR_CAST()

Use ERR_CAST() intead of wierd-looking cast.
Signed-off-by: default avatarNamhyung Kim <namhyung@gmail.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment