[<prev] [next>] [day] [month] [year] [list]
Message-id: <"000301d0a756$3fe2f950$bfa8ebf0$@s"@samsung.com>
Date: Mon, 15 Jun 2015 15:59:47 +0530
From: Maninder Singh <maninder1.s@...sung.com>
To: oberpar@...ux.vnet.ibm.com, linux-kernel@...r.kernel.org
Subject: [PATCH 1/1] kernel/gcov/fs.c : replace kcalloc(1... with kzalloc
Use kzalloc rather than kcalloc(1,...) for allocating one thing.
The semantic patch that makes this change is as follows:
// <smpl>
@@
@@
- kcalloc(1,
+ kzalloc(
...)
// </smpl>
Signed-off-by: Maninder Singh <maninder1.s@...sung.com>
Reviewed-by: Vaneet Narang <v.narang@...sung.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists