This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 206e16d5cafa98ee7476cedb3142b01e53a0b504 Author: yukangzhi <[email protected]> AuthorDate: Tue Dec 16 17:52:54 2025 +0800 sched/init: change nx_bringup() to return void. nx_bringup() always returns OK, so the return value carries no information and the caller only wraps it in DEBUGVERIFY(). Change the prototype to "void nx_bringup(void);" and drop the DEBUGVERIFY() in nx_start(). Assisted-by: Kiro Signed-off-by: yukangzhi <[email protected]> --- sched/init/init.h | 2 +- sched/init/nx_bringup.c | 3 +-- sched/init/nx_start.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sched/init/init.h b/sched/init/init.h index bc33a77d891..be95446c801 100644 --- a/sched/init/init.h +++ b/sched/init/init.h @@ -119,6 +119,6 @@ void nx_idle_trampoline(void); * ****************************************************************************/ -int nx_bringup(void); +void nx_bringup(void); #endif /* __SCHED_INIT_INIT_H */ diff --git a/sched/init/nx_bringup.c b/sched/init/nx_bringup.c index 5a91fc9f1b6..15358a55f3f 100644 --- a/sched/init/nx_bringup.c +++ b/sched/init/nx_bringup.c @@ -502,7 +502,7 @@ static inline void nx_create_initthread(void) * ****************************************************************************/ -int nx_bringup(void) +void nx_bringup(void) { sched_trace_begin(); @@ -557,5 +557,4 @@ int nx_bringup(void) #endif sched_trace_end(); - return OK; } diff --git a/sched/init/nx_start.c b/sched/init/nx_start.c index ba030fc142b..6c4cd3e078f 100644 --- a/sched/init/nx_start.c +++ b/sched/init/nx_start.c @@ -716,7 +716,7 @@ void nx_start(void) /* Create initial tasks and bring-up the system */ - DEBUGVERIFY(nx_bringup()); + nx_bringup(); /* Enter to idleloop */
