From 09ac8885c40d58702df19cdbd8932868e9a1f55d Mon Sep 17 00:00:00 2001 From: "David B. Kinder" Date: Wed, 20 Nov 2019 10:22:45 -0800 Subject: [PATCH] doc: remove old reference to nanokernel in API doc API comment for k_sem_take included an obsolete note about porting from the legacy nanokernel interface. Signed-off-by: David B. Kinder --- include/kernel.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/kernel.h b/include/kernel.h index 31b645a3bbe..23c0fd17f02 100644 --- a/include/kernel.h +++ b/include/kernel.h @@ -3375,12 +3375,6 @@ __syscall void k_sem_init(struct k_sem *sem, unsigned int initial_count, * milliseconds), or one of the special values K_NO_WAIT and * K_FOREVER. * - * @note When porting code from the nanokernel legacy API to the new API, be - * careful with the return value of this function. The return value is the - * reverse of the one of nano_sem_take family of APIs: 0 means success, and - * non-zero means failure, while the nano_sem_take family returns 1 for success - * and 0 for failure. - * * @retval 0 Semaphore taken. * @retval -EBUSY Returned without waiting. * @retval -EAGAIN Waiting period timed out.