Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755016AbbFVN0c (ORCPT ); Mon, 22 Jun 2015 09:26:32 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:44884 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753573AbbFVN0Z (ORCPT ); Mon, 22 Jun 2015 09:26:25 -0400 X-AuditID: cbfee68f-f793b6d000005f66-08-55880cff48d5 From: Maninder Singh To: oberpar@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, shanky.cool1992@gmail.com Cc: pankaj.m@samsung.com, Maninder Singh Subject: [Resend PATCH 1/1] kernel/gcov/fs.c: Use kzalloc for allocating one thing Date: Mon, 22 Jun 2015 18:54:19 +0530 Message-id: <1434979459-30970-1-git-send-email-maninder1.s@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrILMWRmVeSWpSXmKPExsWyRsSkTvc/T0eowdRLKhaXd81hszg8v43F ouH7d2aLe2+2MllseLaO1YHVY+esu+weDw5tZvHo27KK0ePzJrkAligum5TUnMyy1CJ9uwSu jO93T7AV3Gat+DD5GXsD4yWWLkZODgkBE4lvc6cwQdhiEhfurWfrYuTiEBJYyiix+9Ecxi5G DrCiFZtLIOKLGCUu3vnLDOH8ZJR4N/E1K0g3m4CexKpde8CmighEStz4/ZIdpJlZwEli+lc9 EFNYIERicjtYNYuAqsSH/7+YQWxeAXeJX9PvsUOsUpCYM8kGZLqEwGs2iZlntjFB1AtIfJt8 iAWiRlZi0wFmiJMlJQ6uuMEygVFwASPDKkbR1ILkguKk9CJjveLE3OLSvHS95PzcTYzAkDz9 71n/Dsa7B6wPMQpwMCrx8Er8bg8VYk0sK67MPcRoCrRhIrOUaHI+MPDzSuINjc2MLExNTI2N zC3NlMR5F0r9DBYSSE8sSc1OTS1ILYovKs1JLT7EyMTBKdXAGN7lZFXRu/LohVDDtVnv9m89 IGVjKc4SZ+eRo13yy5tr2ZIzB58/8PypvCn2SL9Euf2HTZftHjsez43cynekefOEH9dKWx92 CQbX/fxWf5ajOIbpaEt3/N2r12+847ywK5snadeMlRkTT6XcW3VfR7SZ0/Vr4NSMZyzbuVe+ eHPR/s3epPnbbiuxFGckGmoxFxUnAgAEFzk/RAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNLMWRmVeSWpSXmKPExsVy+t9jAd3/PB2hBn/WSFlc3jWHzeLw/DYW i4bv35kt7r3ZymSx4dk6VgdWj52z7rJ7PDi0mcWjb8sqRo/Pm+QCWKIaGG0yUhNTUosUUvOS 81My89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgBYrKZQl5pQChQISi4uV9O0w TQgNcdO1gGmM0PUNCYLrMTJAAwlrGDO+3z3BVnCbteLD5GfsDYyXWLoYOTgkBEwkVmwu6WLk BDLFJC7cW8/WxcjFISSwiFHi4p2/zBDOT0aJdxNfs4JUsQnoSazatYcFxBYRiJS48fslO8gg ZgEnielf9UBMYYEQicntYNUsAqoSH/7/YgaxeQXcJX5Nv8cOsVZBYs4kmwmM3AsYGVYxiqYW JBcUJ6XnGukVJ+YWl+al6yXn525iBAf8M+kdjKsaLA4xCnAwKvHwVrB0hAqxJpYVV+YeYpTg YFYS4W052x4qxJuSWFmVWpQfX1Sak1p8iNEUaPlEZinR5HxgNOaVxBsam5ibGptamliYmFkq ifOezPcJFRJITyxJzU5NLUgtgulj4uCUamBcZCheFmOdtFL5fCLjhqMPNqT8z2op/Lny8Asv 7+tdJzO+7Vvx/ML2uW/Yjs4KuRk5K/KD78myps+3FjS+u3ud/6StG4e7mGfhRS3nmy3Br7ki PuW33Yyz/xX/KchvY0/39vOce7o9DmpaLXkmO325unjeA6+j5ilnrJ125PQf4xfxubmV2XmT EktxRqKhFnNRcSIAK4COt44CAAA= 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: 833 Lines: 28 Use kzalloc rather than kcalloc(1.. for allocation of one thing. Signed-off-by: Maninder Singh Reviewed-by: Vaneet Narang --- kernel/gcov/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/