jlaitine commented on code in PR #16197:
URL: https://github.com/apache/nuttx/pull/16197#discussion_r2041179698


##########
sched/semaphore/sem_destroy.c:
##########
@@ -74,9 +74,9 @@ int nxsem_destroy(FAR sem_t *sem)
    * leave the count unchanged but still return OK.
    */
 
-  old = atomic_read(NXSEM_COUNT(sem));
   do
     {
+      old = atomic_read(NXSEM_COUNT(sem));

Review Comment:
   ah shoot. you are right. closing this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to