host: fix rzalloc function

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2018-06-27 20:57:39 -07:00
parent 528ec8f3eb
commit bacada5c6b
1 changed files with 1 additions and 4 deletions

View File

@ -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 *rzalloc(int zone, uint32_t caps, size_t bytes)
{ {
void *x; return calloc(bytes, 1);
x = calloc(1, bytes);
return x;
} }
void rfree(void *ptr) void rfree(void *ptr)