mem: do not zero out memory on zmalloc
Zeroing out memory on rte_zmalloc_socket is not required anymore since all allocated memory is already zeroed. Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
This commit is contained in:
parent
ea0bddbd14
commit
b78c917511
@ -123,11 +123,7 @@ rte_malloc(const char *type, size_t size, unsigned align)
|
||||
void *
|
||||
rte_zmalloc_socket(const char *type, size_t size, unsigned align, int socket)
|
||||
{
|
||||
void *ptr = rte_malloc_socket(type, size, align, socket);
|
||||
|
||||
if (ptr != NULL)
|
||||
memset(ptr, 0, size);
|
||||
return ptr;
|
||||
return rte_malloc_socket(type, size, align, socket);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user