NFS: use ERR_CAST()
diff mbox

Message ID 1293555766-14333-1-git-send-email-namhyung@gmail.com
State Accepted, archived
Delegated to: Trond Myklebust
Headers show

Commit Message

Namhyung Kim Dec. 28, 2010, 5:02 p.m. UTC
None

Patch
diff mbox

diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 996dd8989a91..fece122cdd65 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1217,7 +1217,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;