diff options
author | Andrey Severin <lkd1024@mail.ru> | 2017-07-17 16:18:46 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-18 08:57:59 +0200 |
commit | b691bbe2d2535ae0c248cfdda3bb6656c49ea219 (patch) | |
tree | dc01ba1e0ee29e943bb9df5c284895efc1c60b59 /drivers/staging/vc04_services | |
parent | 7d647bcf7e2d3b67b7e596c1c9f30378ea7cd7cf (diff) | |
download | linux-stable-b691bbe2d2535ae0c248cfdda3bb6656c49ea219.tar.gz linux-stable-b691bbe2d2535ae0c248cfdda3bb6656c49ea219.tar.bz2 linux-stable-b691bbe2d2535ae0c248cfdda3bb6656c49ea219.zip |
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>
Diffstat (limited to 'drivers/staging/vc04_services')
-rw-r--r-- | drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |