From: Firo Yang Date: Thu, 23 Apr 2015 09:17:51 +0000 (+0800) Subject: nfs: Remove unneeded casts in nfs X-Git-Tag: firefly_0821_release~176^2~1852^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c456aacf3c27b9a3013d4524fdc4bd0bb61fb884;p=firefly-linux-kernel-4.4.55.git nfs: Remove unneeded casts in nfs Don't unnecessarily cast allocation return value in fs/nfs/inode.c::nfs_alloc_inode(). Signed-off-by: Firo Yang Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 2d8270801215..8a464684e8c8 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -1837,7 +1837,7 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) struct inode *nfs_alloc_inode(struct super_block *sb) { struct nfs_inode *nfsi; - nfsi = (struct nfs_inode *)kmem_cache_alloc(nfs_inode_cachep, GFP_KERNEL); + nfsi = kmem_cache_alloc(nfs_inode_cachep, GFP_KERNEL); if (!nfsi) return NULL; nfsi->flags = 0UL;