RTEMS | assert node->previous==NULL in chain_is_node_off_chain() (!871)

Joel Sherrill (@joel) gitlab at rtems.org
Wed Dec 10 18:38:15 UTC 2025




Joel Sherrill started a new discussion on cpukit/include/rtems/score/chainimpl.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/871#note_137117

 >    const Chain_Node *node
 >  )
 >  {
 > -  return node->next == NULL;
 > +  if ( node->next == NULL ) {
 > +        _Assert( node->previous == NULL );

Functionally this looks ok but the indentation is wrong. Should be 2 spaces.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/871#note_137117
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20251210/566e7cc2/attachment-0001.htm>


More information about the bugs mailing list