JianyuWang0623 commented on PR #17103:
URL: https://github.com/apache/nuttx/pull/17103#issuecomment-3342190865

   > Could you show that it works how you expect with some test logs? Selftest 
(I assume you meant OSTest) doesn't matter here since this code isn't used 
anywhere.
   > 
   > Why not just use `list_for_every_entry_safe_from`?
   
   @linguini1 It is not OSTest. As you mentioned, OSTest does not use this 
macro; instead, the verification is done in the way shown in the demo code 
below. Besides, this simple logic should be easy for everyone to understand. 
Using the safe macro requires additional definition of a `tmp` variable, and in 
some scenarios, "safety" is not necessary, which would lead to resource waste.


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