sem_holder : Modify the incorrect description
authorpradeep.ns <pradeep.ns@samsung.com>
Thu, 8 Jun 2017 16:12:32 +0000 (21:42 +0530)
committerpradeep.ns <pradeep.ns@samsung.com>
Thu, 8 Jun 2017 16:12:32 +0000 (21:42 +0530)
Return values are NULL, however it's mentioned as OK and ERROR, Correct the same

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
os/kernel/semaphore/sem_holder.c

index eb1cfe7..d34bf6d 100644 (file)
@@ -807,7 +807,7 @@ void sem_destroyholder(FAR sem_t *sem)
  *   sem  - A reference to the incremented semaphore
  *
  * Return Value:
- *   0 (OK) or -1 (ERROR) if unsuccessful
+ *   None
  *
  * Assumptions:
  *   Interrupts are disabled.
@@ -842,13 +842,14 @@ void sem_addholder_tcb(FAR struct tcb_s *htcb, FAR sem_t *sem)
  * Name: sem_addholder
  *
  * Description:
- *   Called from sem_wait() when the calling thread obtains the semaphore
+ *   Called from sem_wait() or sem_trywait() when the calling thread
+ *   obtains the semaphore
  *
  * Parameters:
  *   sem - A reference to the incremented semaphore
  *
  * Return Value:
- *   0 (OK) or -1 (ERROR) if unsuccessful
+ *   None
  *
  * Assumptions:
  *   Interrupts are disabled.
@@ -870,7 +871,7 @@ void sem_addholder(FAR sem_t *sem)
  *   None
  *
  * Return Value:
- *   0 (OK) or -1 (ERROR) if unsuccessful
+ *   None
  *
  * Assumptions:
  *