From: Jesper Juhl Date: Thu, 9 Dec 2010 22:25:09 +0000 (+0100) Subject: coda: kill redundant cast in coda_alloc_inode() X-Git-Tag: v4.13~16345^2~21 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=747fecab32e47180e2668c2b22b25752d371e636;p=mirror_ubuntu-bionic-kernel.git coda: kill redundant cast in coda_alloc_inode() kmem_cache_alloc() returns a void pointer which there is no need to cast. Signed-off-by: Jesper Juhl Signed-off-by: Jiri Kosina --- diff --git a/fs/coda/inode.c b/fs/coda/inode.c index 5ea57c8c7f97..1a49c1708a54 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c @@ -45,7 +45,7 @@ static struct kmem_cache * coda_inode_cachep; static struct inode *coda_alloc_inode(struct super_block *sb) { struct coda_inode_info *ei; - ei = (struct coda_inode_info *)kmem_cache_alloc(coda_inode_cachep, GFP_KERNEL); + ei = kmem_cache_alloc(coda_inode_cachep, GFP_KERNEL); if (!ei) return NULL; memset(&ei->c_fid, 0, sizeof(struct CodaFid));