summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-04-08 11:31:02 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-31 17:30:17 +0200
commit159db411662deb72f9d312e4cb38caf9beb9fd4f (patch)
treefceeaf8b639db107becb5182290f019c13d8b881
parent354c2b50a3d707bbdf8d5b553869062cdedaf4fb (diff)
downloadrtems-159db411662deb72f9d312e4cb38caf9beb9fd4f.tar.bz2
score: Use _Freechain_Push()
The nodes are never NULL. Update #3959.
-rw-r--r--cpukit/score/src/threadinitialize.c2
-rw-r--r--cpukit/score/src/threadrestart.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c
index d85615e4b9..4872f84950 100644
--- a/cpukit/score/src/threadinitialize.c
+++ b/cpukit/score/src/threadinitialize.c
@@ -275,7 +275,7 @@ failed:
}
#endif
- _Freechain_Put(
+ _Freechain_Push(
&information->Thread_queue_heads.Free,
the_thread->Wait.spare_heads
);
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c
index c5db6606d2..a2712fa061 100644
--- a/cpukit/score/src/threadrestart.c
+++ b/cpukit/score/src/threadrestart.c
@@ -176,7 +176,7 @@ static void _Thread_Free( Thread_Control *the_thread )
#endif
#endif
- _Freechain_Put(
+ _Freechain_Push(
&information->Thread_queue_heads.Free,
the_thread->Wait.spare_heads
);