nuttx/libs/libnx
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
..
nx include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxfonts include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxglib include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxmu sched/semaphore: Remove the return value check of nxsem_init/nxmutex_init 2026-09-25 10:37:43 +02:00
nxtk include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
CMakeLists.txt libs/libnx: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Kconfig
Makefile tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 21:26:03 -03:00
nxcontext.h libs/libnx: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00