Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/adfs: remove unneeded cast

kmem_cache_alloc() returns void*.

Signed-off-by: Firo Yang <firogm@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Firo Yang and committed by
Linus Torvalds
d96f1845 3e44c471

+1 -1
+1 -1
fs/adfs/super.c
··· 242 242 static struct inode *adfs_alloc_inode(struct super_block *sb) 243 243 { 244 244 struct adfs_inode_info *ei; 245 - ei = (struct adfs_inode_info *)kmem_cache_alloc(adfs_inode_cachep, GFP_KERNEL); 245 + ei = kmem_cache_alloc(adfs_inode_cachep, GFP_KERNEL); 246 246 if (!ei) 247 247 return NULL; 248 248 return &ei->vfs_inode;