All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 02/15] procfs: Remove unnecessary cast proc alloc codes
@ 2015-04-23  7:48 Firo Yang
  0 siblings, 0 replies; only message in thread
From: Firo Yang @ 2015-04-23  7:48 UTC (permalink / raw)
  To: kernel-janitors

Remove unnecessary cast of allocation return value in
fs/proc/inode.c::proc_alloc_inode().

Signed-off-by: Firo Yang <firogm@gmail.com>
---
 fs/proc/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/proc/inode.c b/fs/proc/inode.c
index 7697b66..08a7235 100644
--- a/fs/proc/inode.c
+++ b/fs/proc/inode.c
@@ -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;
-- 
2.1.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-23  7:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-23  7:48 [PATCH v2 02/15] procfs: Remove unnecessary cast proc alloc codes Firo Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.