From: AndyS <lkd1024@mail.ru>
To: eric@anholt.net
Cc: stefan.wahren@i2se.com, gregkh@linuxfoundation.org,
daniels@collabora.com, noralf@tronnes.org,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
Andrey Severin <lkd1024@mail.ru>
Subject: [PATCH] Staging:vc04_services:vchiq_util.c: kzalloc call changed to kcalloc
Date: Mon, 17 Jul 2017 16:18:46 +0300 [thread overview]
Message-ID: <20170717131846.1743-1-lkd1024@mail.ru> (raw)
From: Andrey Severin <lkd1024@mail.ru>
kzalloc call was changed to kcalloc by checkpatch.pl recommendation
Signed-off-by: Andrey Severin <lkd1024@mail.ru>
---
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c
index 7fa0310e7b9e..2e52f07bbaa9 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c
@@ -51,7 +51,7 @@ int vchiu_queue_init(VCHIU_QUEUE_T *queue, int size)
sema_init(&queue->pop, 0);
sema_init(&queue->push, 0);
- queue->storage = kzalloc(size * sizeof(VCHIQ_HEADER_T *), GFP_KERNEL);
+ queue->storage = kcalloc(size, sizeof(VCHIQ_HEADER_T *), GFP_KERNEL);
if (!queue->storage) {
vchiu_queue_delete(queue);
return 0;
--
2.13.2
next reply other threads:[~2017-07-17 13:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-17 13:18 AndyS [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-07-16 16:39 AndyS
2017-07-17 12:26 ` Greg KH
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=20170717131846.1743-1-lkd1024@mail.ru \
--to=lkd1024@mail.ru \
--cc=daniels@collabora.com \
--cc=devel@driverdev.osuosl.org \
--cc=eric@anholt.net \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=noralf@tronnes.org \
--cc=stefan.wahren@i2se.com \
/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®