From bacada5c6bf9d1d724fd2adc2e853339c126d1fa Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Wed, 27 Jun 2018 20:57:39 -0700 Subject: [PATCH] host: fix rzalloc function Signed-off-by: Ranjani Sridharan Signed-off-by: Seppo Ingalsuo --- src/host/alloc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/host/alloc.c b/src/host/alloc.c index beda37cfc..e7e2863ce 100644 --- a/src/host/alloc.c +++ b/src/host/alloc.c @@ -46,10 +46,7 @@ void *rmalloc(int zone, uint32_t caps, size_t bytes) void *rzalloc(int zone, uint32_t caps, size_t bytes) { - void *x; - - x = calloc(1, bytes); - return x; + return calloc(bytes, 1); } void rfree(void *ptr)