From: Namhyung Kim Date: Tue, 28 Dec 2010 17:02:46 +0000 (+0000) Subject: NFS: use ERR_CAST() X-Git-Tag: firefly_0821_release~7613^2~3053^2~36 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bf0c84f1614bffc59565d04f09b9ac6b1aa269a9;p=firefly-linux-kernel-4.4.55.git NFS: use ERR_CAST() Use ERR_CAST() intead of wierd-looking cast. Signed-off-by: Namhyung Kim Signed-off-by: Trond Myklebust --- 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 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;