mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
Reanem kzalloc to kmm_zalloc for consistency
This commit is contained in:
@@ -115,7 +115,7 @@ static int thread_create(FAR const char *name, uint8_t ttype, int priority,
|
||||
|
||||
/* Allocate a TCB for the new task. */
|
||||
|
||||
tcb = (FAR struct task_tcb_s *)kzalloc(sizeof(struct task_tcb_s));
|
||||
tcb = (FAR struct task_tcb_s *)kmm_zalloc(sizeof(struct task_tcb_s));
|
||||
if (!tcb)
|
||||
{
|
||||
sdbg("ERROR: Failed to allocate TCB\n");
|
||||
|
||||
Reference in New Issue
Block a user