[rtems commit] score: _Thread_queue_Extract_with_proxy()

Sebastian Huber sebh at rtems.org
Mon Mar 31 08:09:16 UTC 2014


Module:    rtems
Branch:    master
Commit:    600bb68fa166adbd1c7fd2fce1a1641c6f4a6c0f
Changeset: http://git.rtems.org/rtems/commit/?id=600bb68fa166adbd1c7fd2fce1a1641c6f4a6c0f

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Mar 27 08:30:51 2014 +0100

score: _Thread_queue_Extract_with_proxy()

Drop the return status, since it is nowhere used.

---

 cpukit/score/include/rtems/score/threadqimpl.h |    2 +-
 cpukit/score/src/threadqextractwithproxy.c     |    6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h
index a8b00de..040e16b 100644
--- a/cpukit/score/include/rtems/score/threadqimpl.h
+++ b/cpukit/score/include/rtems/score/threadqimpl.h
@@ -151,7 +151,7 @@ bool _Thread_queue_Extract(
  *  and ensures that if there is a proxy for this task on
  *  another node, it is also dealt with.
  */
-bool _Thread_queue_Extract_with_proxy(
+void _Thread_queue_Extract_with_proxy(
   Thread_Control       *the_thread
 );
 
diff --git a/cpukit/score/src/threadqextractwithproxy.c b/cpukit/score/src/threadqextractwithproxy.c
index f1c1949..fb06526 100644
--- a/cpukit/score/src/threadqextractwithproxy.c
+++ b/cpukit/score/src/threadqextractwithproxy.c
@@ -27,7 +27,7 @@
 #include <rtems/score/objectimpl.h>
 #include <rtems/score/statesimpl.h>
 
-bool _Thread_queue_Extract_with_proxy(
+void _Thread_queue_Extract_with_proxy(
   Thread_Control       *the_thread
 )
 {
@@ -52,8 +52,6 @@ bool _Thread_queue_Extract_with_proxy(
 
   the_thread_queue = the_thread->Wait.queue;
   if ( the_thread_queue != NULL ) {
-    return _Thread_queue_Extract( the_thread_queue, the_thread );
-  } else {
-    return false;
+    _Thread_queue_Extract( the_thread_queue, the_thread );
   }
 }




More information about the vc mailing list