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


##########
libs/libc/semaphore/sem_getvalue.c:
##########
@@ -67,25 +63,9 @@
 
 int nxsem_get_value(FAR sem_t *sem, FAR int *sval)
 {
-  if (sem != NULL && sval != NULL)
+  if (sem != NULL && sval != NULL && !NXSEM_IS_MUTEX(sem))
     {
-      if (NXSEM_IS_MUTEX(sem))

Review Comment:
   hm  I guess this comment was about if defined -> ifdef for sem_trywait ? 



-- 
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