anchao commented on code in PR #17531:
URL: https://github.com/apache/nuttx/pull/17531#discussion_r2629807130


##########
drivers/timers/timer.c:
##########
@@ -150,11 +150,7 @@ static int timer_open(FAR struct file *filep)
 
   /* Get exclusive access to the device structures */
 
-  ret = nxmutex_lock(&upper->lock);
-  if (ret < 0)
-    {
-      goto errout;
-    }
+  nxmutex_lock(&upper->lock);

Review Comment:
   could we implement crefs counter to atomic and remove the nxmutex_lock?



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