Reapply "smalloc: smalloc() already clears memory, scalloc() need not do it again"
authorVincent Fu <vincent.fu@samsung.com>
Tue, 11 Jun 2024 17:48:41 +0000 (17:48 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Tue, 11 Jun 2024 17:51:57 +0000 (17:51 +0000)
commitf956fed4d181d41a5b1c49bba9dce46d8197d428
treee135b1875133b9f978aace141e6ef1d8c59b867c
parentfbf954c96bb4089b3097adde723216a4668f854b
Reapply "smalloc: smalloc() already clears memory, scalloc() need not do it again"

This reverts commit eb7fe4550ff2a569d0d8c71de16a1ea1e1aaf0a5.

It turns out that each buffer is in fact cleared in smalloc_pool() when
it is called by smalloc(). So there is no need to clear the buffer a
second time in scalloc.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
smalloc.c