Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753647Ab0L1RDQ (ORCPT ); Tue, 28 Dec 2010 12:03:16 -0500 Received: from mail-px0-f174.google.com ([209.85.212.174]:58984 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592Ab0L1RDP (ORCPT ); Tue, 28 Dec 2010 12:03:15 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=hgh8P+5kjf8pze6H7FQs1nRm36RhAnL1m9hyaEDEVIwUQKpIWPvYH4O47wAvdl/Byq X6sGvkbaHj7BPXjI4EAhWKiVvOfFIpN/a7fMmRPTEFGewIxRfnsv6D1U7wlewtRbr4r8 7bEas3Uv0yrd9PjbCUioSeOdGS8qAb2Vv7Y5w= From: Namhyung Kim To: Trond Myklebust Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] NFS: use ERR_CAST() Date: Wed, 29 Dec 2010 02:02:46 +0900 Message-Id: <1293555766-14333-1-git-send-email-namhyung@gmail.com> X-Mailer: git-send-email 1.7.3.4.600.g982838b0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 867 Lines: 28 Use ERR_CAST() intead of wierd-looking cast. Signed-off-by: Namhyung Kim --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/