proc: Remove unnecessary cast of allocation return value
Subsystems (2)
PATCH 2/15 proc: Remove unnecessary cast of allocation return value
Remove unnecessary cast of allocation return value in fs/proc/inode.c::proc_alloc_inode().
Signed-off-by Firo Yang <[email protected]>
--- fs/proc/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/proc/inode.c +1 -1
@@ -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 ;
Signature · 1 line
2.1.0