summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2017-12-21 16:53:08 -0500
committerGedare Bloom <gedare@rtems.org>2018-01-10 09:42:02 -0500
commit991e1b85947e5cf0a079fc8e566aa3a563a8b5e0 (patch)
tree15b98df047440b0663b1578c285b9e8b98d0455e
parentaecb508673df0d047e055f452e3f2d9db17328c0 (diff)
score/chain: Fix _Chain_Is_first and _Chain_Is_last
Updates #1964.
-rw-r--r--cpukit/score/inline/rtems/score/chain.inl4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/inline/rtems/score/chain.inl b/cpukit/score/inline/rtems/score/chain.inl
index 3bde7fb229..1991415236 100644
--- a/cpukit/score/inline/rtems/score/chain.inl
+++ b/cpukit/score/inline/rtems/score/chain.inl
@@ -235,7 +235,7 @@ RTEMS_INLINE_ROUTINE bool _Chain_Is_first(
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
@@ -252,7 +252,7 @@ RTEMS_INLINE_ROUTINE bool _Chain_Is_last(
const Chain_Node *the_node
)
{
- return (the_node->next == NULL);
+ return (the_node->next->next == NULL);
}
/** @brief Does this Chain have only One Node