mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
@@ -235,7 +235,7 @@ RTEMS_INLINE_ROUTINE bool _Chain_Is_first(
|
|||||||
const Chain_Node *the_node
|
const Chain_Node *the_node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (the_node->previous == NULL);
|
return (the_node->previous->previous == NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @brief Is this the Last Node on the Chain
|
/** @brief Is this the Last Node on the Chain
|
||||||
@@ -252,7 +252,7 @@ RTEMS_INLINE_ROUTINE bool _Chain_Is_last(
|
|||||||
const Chain_Node *the_node
|
const Chain_Node *the_node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (the_node->next == NULL);
|
return (the_node->next->next == NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @brief Does this Chain have only One Node
|
/** @brief Does this Chain have only One Node
|
||||||
|
|||||||
Reference in New Issue
Block a user