mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
Staging:vc04_services:vchiq_util.c: kzalloc call changed to kcalloc
kzalloc call was changed to kcalloc by checkpatch.pl recommendation Signed-off-by: Andrey Severin <lkd1024@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7d647bcf7e
commit
b691bbe2d2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue