mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
fs/proc/inode.c: remove cast from memory allocation
Coccinelle emits this warning: WARNING: casting value returned by memory allocation function to (struct proc_inode *) is useless. Remove unnecessary cast. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Tobin C. Harding <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
baf6a9a1db
commit
f245e1c17a
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ static struct inode *proc_alloc_inode(struct super_block *sb)
|
|||
struct proc_inode *ei;
|
||||
struct inode *inode;
|
||||
|
||||
ei = (struct proc_inode *)kmem_cache_alloc(proc_inode_cachep, GFP_KERNEL);
|
||||
ei = kmem_cache_alloc(proc_inode_cachep, GFP_KERNEL);
|
||||
if (!ei)
|
||||
return NULL;
|
||||
ei->pid = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue