Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1689025 > unrolled thread

[PATCH] Staging:vc04_services:vchiq_util.c: kzalloc call changed to kcalloc

Started byAndyS <lkd1024@mail.ru>
First post2017-07-17 15:20 +0200
Last post2017-07-17 15:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] Staging:vc04_services:vchiq_util.c: kzalloc call changed to kcalloc AndyS <lkd1024@mail.ru> - 2017-07-17 15:20 +0200

#1689025 — [PATCH] Staging:vc04_services:vchiq_util.c: kzalloc call changed to kcalloc

FromAndyS <lkd1024@mail.ru>
Date2017-07-17 15:20 +0200
Subject[PATCH] Staging:vc04_services:vchiq_util.c: kzalloc call changed to kcalloc
Message-ID<u4e6m-5An-9@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web