mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 12:18:06 +00:00
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
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Make.defs | ||
| sem_clockwait.c | ||
| sem_close.c | ||
| sem_destroy.c | ||
| sem_getprioceiling.c | ||
| sem_getprotocol.c | ||
| sem_getvalue.c | ||
| sem_init.c | ||
| sem_open.c | ||
| sem_post.c | ||
| sem_setmaxvalue.c | ||
| sem_setprioceiling.c | ||
| sem_setprotocol.c | ||
| sem_timedwait.c | ||
| sem_trywait.c | ||
| sem_unlink.c | ||
| sem_wait.c | ||