From: tip-bot for Alexandru Gheorghiu <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org,
gheorghiuandru@gmail.com, tglx@linutronix.de
Subject: [tip:x86/platform] x86/platform/uv: Replace kmalloc() & memset with kzalloc()
Date: Mon, 11 Mar 2013 03:02:17 -0700 [thread overview]
Message-ID: <tip-e87b686b5109e171438a0529828d3109b7ad6da3@git.kernel.org> (raw)
In-Reply-To: <1362822043-15559-1-git-send-email-gheorghiuandru@gmail.com>
Commit-ID: e87b686b5109e171438a0529828d3109b7ad6da3
Gitweb: http://git.kernel.org/tip/e87b686b5109e171438a0529828d3109b7ad6da3
Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
AuthorDate: Sat, 9 Mar 2013 11:40:43 +0200
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Mon, 11 Mar 2013 08:33:01 +0100
x86/platform/uv: Replace kmalloc() & memset with kzalloc()
This was found using coccicheck.
Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Link: http://lkml.kernel.org/r/1362822043-15559-1-git-send-email-gheorghiuandru@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
arch/x86/platform/uv/uv_time.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/x86/platform/uv/uv_time.c b/arch/x86/platform/uv/uv_time.c
index 98718f6..5c86786 100644
--- a/arch/x86/platform/uv/uv_time.c
+++ b/arch/x86/platform/uv/uv_time.c
@@ -159,10 +159,9 @@ static __init int uv_rtc_allocate_timers(void)
{
int cpu;
- blade_info = kmalloc(uv_possible_blades * sizeof(void *), GFP_KERNEL);
+ blade_info = kzalloc(uv_possible_blades * sizeof(void *), GFP_KERNEL);
if (!blade_info)
return -ENOMEM;
- memset(blade_info, 0, uv_possible_blades * sizeof(void *));
for_each_present_cpu(cpu) {
int nid = cpu_to_node(cpu);
prev parent reply other threads:[~2013-03-11 10:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-09 9:40 [PATCH] arch: x86: platform: uv: Replaced kmalloc & memset with kzalloc Alexandru Gheorghiu
2013-03-11 10:02 ` tip-bot for Alexandru Gheorghiu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-e87b686b5109e171438a0529828d3109b7ad6da3@git.kernel.org \
--to=tipbot@zytor.com \
--cc=gheorghiuandru@gmail.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®