Commit 747fecab32e47180e2668c2b22b25752d371e636

Authored by Jesper Juhl
Committed by Jiri Kosina
1 parent fa9f90be74

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -45,7 +45,7 @@
45 45 static struct inode *coda_alloc_inode(struct super_block *sb)
46 46 {
47 47 struct coda_inode_info *ei;
48   - ei = (struct coda_inode_info *)kmem_cache_alloc(coda_inode_cachep, GFP_KERNEL);
  48 + ei = kmem_cache_alloc(coda_inode_cachep, GFP_KERNEL);
49 49 if (!ei)
50 50 return NULL;
51 51 memset(&ei->c_fid, 0, sizeof(struct CodaFid));