* [PATCH] NFS: use ERR_CAST()
@ 2010-12-28 17:02 Namhyung Kim
0 siblings, 0 replies; only message in thread
From: Namhyung Kim @ 2010-12-28 17:02 UTC (permalink / raw)
To: Trond Myklebust; +Cc: linux-nfs, linux-kernel
Use ERR_CAST() intead of wierd-looking cast.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
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 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;
--
1.7.3.4.600.g982838b0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-28 17:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-28 17:02 [PATCH] NFS: use ERR_CAST() Namhyung Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).