Skip to contentSkip to conversation

NFS: use ERR_CAST()

PATCH New Namhyung Kim 1 participant 1 message Dec 28, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFS: use ERR_CAST()

Use ERR_CAST() intead of wierd-looking cast.

---
 fs/nfs/dir.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/nfs/dir.c +1 -1
index 996dd8989a91..fece122cdd65 100644
@@ -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;
 
Signature · 1 line
1.7.3.4.600.g982838b0