mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
global change: fix tools/checkpatch.sh warnnings
Change-Id: I88cfa979c44bcaf3a8f6e036c6bfccd3402ca85a Signed-off-by: ligd <liguiding@fishsemi.com>
This commit is contained in:
@@ -94,10 +94,10 @@ static const char g_pthreadname[] = "<pthread>";
|
||||
* This functions sets up parameters in the Task Control Block (TCB) in
|
||||
* preparation for starting a new thread.
|
||||
*
|
||||
* pthread_argsetup() is called from task_init() and nxtask_start() to create
|
||||
* a new task (with arguments cloned via strdup) or pthread_create() which
|
||||
* has one argument passed by value (distinguished by the pthread boolean
|
||||
* argument).
|
||||
* pthread_argsetup() is called from task_init() and nxtask_start() to
|
||||
* create a new task (with arguments cloned via strdup) or pthread_create()
|
||||
* which has one argument passed by value (distinguished by the pthread
|
||||
* boolean argument).
|
||||
*
|
||||
* Input Parameters:
|
||||
* tcb - Address of the new task's TCB
|
||||
@@ -260,7 +260,8 @@ int pthread_create(FAR pthread_t *thread, FAR const pthread_attr_t *attr,
|
||||
|
||||
/* Allocate a TCB for the new task. */
|
||||
|
||||
ptcb = (FAR struct pthread_tcb_s *)kmm_zalloc(sizeof(struct pthread_tcb_s));
|
||||
ptcb = (FAR struct pthread_tcb_s *)
|
||||
kmm_zalloc(sizeof(struct pthread_tcb_s));
|
||||
if (!ptcb)
|
||||
{
|
||||
serr("ERROR: Failed to allocate TCB\n");
|
||||
|
||||
Reference in New Issue
Block a user