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


##########
libs/libc/semaphore/sem_wait.c:
##########
@@ -156,8 +157,9 @@ int nxsem_wait(FAR sem_t *sem)
 #  endif
       )
     {
-      int32_t old = 1;
-      if (atomic_try_cmpxchg_acquire(NXSEM_COUNT(sem), &old, 0))
+      const int32_t tid = _SCHED_GETTID();

Review Comment:
   nah.. it is const in this scope



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to