nuttx/libs/libc/semaphore
rongbaichuan 59d5ce0f31 sched/semaphore: Remove the return value check of nxsem_init/nxmutex_init
nxsem_init(), nxsem_destroy(), nxmutex_init() and nxmutex_destroy()
always return OK, so checking the result only leaves dead code: the
compiler cannot remove it, because these are cross-translation-unit calls
and the nxrmutex_destroy() test is duplicated into every inlined call
site.

Apply the convention already established in commit a47a36bc5b (PR #7473)
to the two definitions which still test the value and to the 54 remaining
call sites. No signature or prototype is changed.

Testing: stm32f103-minimum:nsh builds with -Os without new warnings.

Assisted-by: DeepSeek Harness:deepseek-flash
Signed-off-by: rongbaichuan <rongbaichuan1027@163.com>
2026-09-25 10:37:43 +02:00
..
CMakeLists.txt sched/semaphore: add support to customize semaphore max allowed value 2025-09-04 09:48:34 +08:00
Make.defs sched/semaphore: add support to customize semaphore max allowed value 2025-09-04 09:48:34 +08:00
sem_clockwait.c
sem_close.c
sem_destroy.c sched/semaphore: Remove the return value check of nxsem_init/nxmutex_init 2026-09-25 10:37:43 +02:00
sem_getprioceiling.c
sem_getprotocol.c
sem_getvalue.c Integrate nxmutex support fully into nxsem 2025-05-08 16:00:05 +08:00
sem_init.c sched/semaphore: Remove the return value check of nxsem_init/nxmutex_init 2026-09-25 10:37:43 +02:00
sem_open.c
sem_post.c libc/semaphore: Go the fast path even arch doesn't support atomic 2025-07-08 09:47:44 -03:00
sem_setmaxvalue.c sched/semaphore: add support to customize semaphore max allowed value 2025-09-04 09:48:34 +08:00
sem_setprioceiling.c
sem_setprotocol.c
sem_timedwait.c libc/semaphore: remove unused hander file 2024-12-30 12:02:34 +08:00
sem_trywait.c sched/semaphore: Keep a negative task id out of the mutex holder. 2026-08-09 10:05:30 +08:00
sem_unlink.c
sem_wait.c sched/semaphore: Keep a negative task id out of the mutex holder. 2026-08-09 10:05:30 +08:00