Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754761AbbFOKaX (ORCPT ); Mon, 15 Jun 2015 06:30:23 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:35625 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754323AbbFOKaN (ORCPT ); Mon, 15 Jun 2015 06:30:13 -0400 X-AuditID: cbfee68f-f793b6d000005f66-80-557ea92fdae6 From: Maninder Singh To: oberpar@linux.vnet.ibm.com, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] kernel/gcov/fs.c : replace kcalloc(1... with kzalloc Date: Mon, 15 Jun 2015 15:59:47 +0530 Message-id: <"000301d0a756$3fe2f950$bfa8ebf0$@s"@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: AdCnVjPGgc4jegqtS2qoQNG7kNIX+Q== Content-language: en-us X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsWyRsSkRtdgZV2owYyrHBaXd81hs2j4/p3Z gcnjwaHNLB6fN8kFMEVx2aSk5mSWpRbp2yVwZbzePZGt4DlbxbN3BQ2MG1i7GDk5JARMJFpv 3WGDsMUkLtxbD2RzcQgJLGWUmD1jAiNM0fG2eYwQiUWMEjMvr2OBcD4xSrzpXwnWziagJ7Fq 1x4WEFtEwEZi2uc77CC2sICnxMbne8FsFgFViaOTeoHqOTh4BWwl+vr8QMK8AoISPybfA2tl FtCSWL/zOBOELS+xec1bZpByCQF1iUd/dUFMEaBNP1aZQVSIS0x68JAd5BoJgXZ2ifbJR1kh NglIfJt8iAWiVVZi0wFmiFckJQ6uuMEygVF0FpLFs5AsnoVk8SwkKxYwsqxiFE0tSC4oTkov MtYrTswtLs1L10vOz93ECIyQ0/+e9e9gvHvA+hCjAAejEg9v5KfaUCHWxLLiytxDjKZAF01k lhJNzgfGYV5JvKGxmZ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OL6O9yvcJvrJfwrdvbueZu01XkpRYijMSDbWYi4oTAVLC/+vVAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1079 Lines: 42 Use kzalloc rather than kcalloc(1,...) for allocating one thing. The semantic patch that makes this change is as follows: // @@ @@ - kcalloc(1, + kzalloc( ...) // Signed-off-by: Maninder Singh Reviewed-by: Vaneet Narang --- kernel/gcov/fs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/gcov/fs.c b/kernel/gcov/fs.c index edf67c4..b31701a 100644 --- a/kernel/gcov/fs.c +++ b/kernel/gcov/fs.c @@ -437,7 +437,7 @@ static struct gcov_node *new_node(struct gcov_node *parent, if (!node) goto err_nomem; if (info) { - node->loaded_info = kcalloc(1, sizeof(struct gcov_info *), + node->loaded_info = kzalloc(sizeof(struct gcov_info *), GFP_KERNEL); if (!node->loaded_info) goto err_nomem; -- 1.7.1 -- 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/