mirror of
https://github.com/apache/nuttx.git
synced 2026-09-28 10:03:51 +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_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 | ||