Skip to contentSkip to conversation

Staging:vc04_services:vchiq_util.c: kzalloc call changed to kcalloc

PATCH New AndyS 1 participant 1 message Jul 17, 2017

Subsystems (2)
lore
Share & tools
lore

AndyS

author
#0 lore raw

PATCH 1/1 Staging:vc04_services:vchiq_util.c: kzalloc call changed to kcalloc

From: Andrey Severin <[email protected]>

kzalloc call was changed to kcalloc by checkpatch.pl recommendation

---
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c +1 -1
index 7fa0310e7b9e..2e52f07bbaa9 100644
@@ -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;
Signature · 1 line
2.13.2