xiaoxiang781216 commented on code in PR #18254:
URL: https://github.com/apache/nuttx/pull/18254#discussion_r2754134588


##########
wireless/ieee802154/mac802154.c:
##########
@@ -2050,9 +2050,8 @@ static void mac802154_rxbeaconframe(FAR struct 
ieee802154_privmac_s *priv,
                     }
                   else if (priv->curr_op == MAC802154_OP_NONE)
                     {
-                      int sval;
-                      DEBUGASSERT(nxsem_get_value(&priv->opsem, &sval) == 0
-                                  && sval == 1);
+                      DEBUGASSERT(atomic_read(NXSEM_COUNT(&priv->opsem))

Review Comment:
   it's debug assert why do you want to optimize the debug path?



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