mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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 <jj@chaosbits.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
fa9f90be74
commit
747fecab32
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ static struct kmem_cache * coda_inode_cachep;
|
||||||
static struct inode *coda_alloc_inode(struct super_block *sb)
|
static struct inode *coda_alloc_inode(struct super_block *sb)
|
||||||
{
|
{
|
||||||
struct coda_inode_info *ei;
|
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)
|
if (!ei)
|
||||||
return NULL;
|
return NULL;
|
||||||
memset(&ei->c_fid, 0, sizeof(struct CodaFid));
|
memset(&ei->c_fid, 0, sizeof(struct CodaFid));
|
||||||
|
|
Loading…
Add table
Reference in a new issue