Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752827AbbBKL66 (ORCPT ); Wed, 11 Feb 2015 06:58:58 -0500 Received: from mail-wg0-f44.google.com ([74.125.82.44]:60973 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752467AbbBKL64 (ORCPT ); Wed, 11 Feb 2015 06:58:56 -0500 From: Bas Peters To: akpm@linux-foundation.org Cc: Bas Peters , oleg@redhat.com, adobriyan@gmail.com, gorcunov@openvz.org, ebiederm@xmission.com, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] fs: proc: inode.c: remove unnecessary type cast Date: Wed, 11 Feb 2015 12:58:45 +0100 Message-Id: <1423655925-15853-1-git-send-email-baspeters93@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 28 Issue was detected using Coccinelle. Signed-off-by: Bas Peters --- 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 8420a2f..e16ee87 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -57,7 +57,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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/