diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-12-28 12:02:46 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-01-04 13:10:39 -0500 |
commit | bf0c84f1614bffc59565d04f09b9ac6b1aa269a9 (patch) | |
tree | cf310f5baaa323fe902320047f32e0d0c4a8f2a9 /fs | |
parent | 5f3e97c9ee6290befb5a2e78baf95ff951a8a34a (diff) |
NFS: use ERR_CAST()
Use ERR_CAST() intead of wierd-looking cast.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 3e2123fe79f5..831d61c4449b 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -1218,7 +1218,7 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, stru | |||
1218 | goto out_unblock_sillyrename; | 1218 | goto out_unblock_sillyrename; |
1219 | } | 1219 | } |
1220 | inode = nfs_fhget(dentry->d_sb, fhandle, fattr); | 1220 | inode = nfs_fhget(dentry->d_sb, fhandle, fattr); |
1221 | res = (struct dentry *)inode; | 1221 | res = ERR_CAST(inode); |
1222 | if (IS_ERR(res)) | 1222 | if (IS_ERR(res)) |
1223 | goto out_unblock_sillyrename; | 1223 | goto out_unblock_sillyrename; |
1224 | 1224 | ||