All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 09/15] 9p:kzalloc() returns void pointer, no need to cast
@ 2015-04-23  5:33 Firo Yang
  0 siblings, 0 replies; only message in thread
From: Firo Yang @ 2015-04-23  5:33 UTC (permalink / raw)
  To: kernel-janitors

kzalloc() returns a void pointer - no need to cast it in
fs/9p/vfs_inode.c::v9fs_alloc_inode()

Signed-off-by: Firo Yang <firogm@gmail.com>
---
 fs/9p/vfs_inode.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 3662f1d..b6ade6f 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -238,8 +238,7 @@ v9fs_blank_wstat(struct p9_wstat *wstat)
 struct inode *v9fs_alloc_inode(struct super_block *sb)
 {
 	struct v9fs_inode *v9inode;
-	v9inode = (struct v9fs_inode *)kmem_cache_alloc(v9fs_inode_cache,
-							GFP_KERNEL);
+	v9inode = kmem_cache_alloc(v9fs_inode_cache, GFP_KERNEL);
 	if (!v9inode)
 		return NULL;
 #ifdef CONFIG_9P_FSCACHE
-- 
2.1.0


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-23  5:33 [PATCH 09/15] 9p:kzalloc() returns void pointer, no need to cast 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.