Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752932AbbBKOGB (ORCPT ); Wed, 11 Feb 2015 09:06:01 -0500 Received: from out01.mta.xmission.com ([166.70.13.231]:34626 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752655AbbBKOF7 (ORCPT ); Wed, 11 Feb 2015 09:05:59 -0500 From: ebiederm@xmission.com (Eric W. Biederman) To: Bas Peters Cc: akpm@linux-foundation.org, oleg@redhat.com, adobriyan@gmail.com, gorcunov@openvz.org, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: <1423655925-15853-1-git-send-email-baspeters93@gmail.com> Date: Wed, 11 Feb 2015 08:02:40 -0600 In-Reply-To: <1423655925-15853-1-git-send-email-baspeters93@gmail.com> (Bas Peters's message of "Wed, 11 Feb 2015 12:58:45 +0100") Message-ID: <878ug4k0lb.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-AID: U2FsdGVkX19DwghzbcyEMlNp2lE6YmwarTVbsmOrIqs= X-SA-Exim-Connect-IP: 70.59.163.10 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4999] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa04 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Bas Peters X-Spam-Relay-Country: X-Spam-Timing: total 570 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 2.8 (0.5%), b_tie_ro: 1.94 (0.3%), parse: 0.79 (0.1%), extract_message_metadata: 2.4 (0.4%), get_uri_detail_list: 0.78 (0.1%), tests_pri_-1000: 28 (4.9%), tests_pri_-950: 1.50 (0.3%), tests_pri_-900: 1.30 (0.2%), tests_pri_-400: 38 (6.7%), check_bayes: 37 (6.5%), b_tokenize: 18 (3.2%), b_tok_get_all: 12 (2.1%), b_comp_prob: 1.73 (0.3%), b_tok_touch_all: 3.4 (0.6%), b_finish: 0.61 (0.1%), tests_pri_0: 475 (83.3%), tests_pri_500: 4.6 (0.8%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH] fs: proc: inode.c: remove unnecessary type cast X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Wed, 24 Sep 2014 11:00:52 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 969 Lines: 31 Bas Peters writes: > Issue was detected using Coccinelle. I believe Al Viro wrote that deliberately. > 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; Eric -- 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/