[PATCH 4/5] score: Simplify _Thread_queue_Do_flush()

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Apr 1 13:56:14 UTC 2016


Also set the thread wait return code for thread proxies since this
causes no harm.
---
 cpukit/score/src/threadqflush.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/cpukit/score/src/threadqflush.c b/cpukit/score/src/threadqflush.c
index 694c746..56dd805 100644
--- a/cpukit/score/src/threadqflush.c
+++ b/cpukit/score/src/threadqflush.c
@@ -45,10 +45,7 @@ void _Thread_queue_Do_flush(
       )
     )
   ) {
-#if defined(RTEMS_MULTIPROCESSING)
-    if ( _Objects_Is_local_id( the_thread->Object.id ) )
-#endif
-      the_thread->Wait.return_code = status;
+    the_thread->Wait.return_code = status;
 
     _Thread_queue_Extract_critical(
       &the_thread_queue->Queue,
-- 
1.8.4.5




More information about the devel mailing list