Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 747fecab authored by Jesper Juhl's avatar Jesper Juhl Committed by Jiri Kosina
Browse files

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: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent fa9f90be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));