mirror of
https://github.com/apache/nuttx.git
synced 2026-10-02 19:58:01 +00:00
nxsem_init(), nxsem_destroy(), nxmutex_init(), nxmutex_destroy(), nxrmutex_init() and nxrmutex_destroy() cannot fail, so promising a negated errno value on failure documents an error that is never returned. The coding standard asks the returned value description to identify all error values of a function, and there are none, so state that OK is always returned. Follows "sched/semaphore: Remove the return value check of nxsem_init/nxmutex_init", which removed the last checks of these values. Assisted-by: DeepSeek Harness:deepseek-flash Signed-off-by: rongbaichuan <rongbaichuan1027@163.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Make.defs | ||
| sem_clockwait.c | ||
| sem_destroy.c | ||
| sem_holder.c | ||
| sem_initialize.c | ||
| sem_post.c | ||
| sem_protect.c | ||
| sem_recover.c | ||
| sem_reset.c | ||
| sem_rw.c | ||
| sem_setprotocol.c | ||
| sem_tickwait.c | ||
| sem_timedwait.c | ||
| sem_timeout.c | ||
| sem_trywait.c | ||
| sem_wait.c | ||
| sem_waitirq.c | ||
| semaphore.h | ||