[PATCH 05/32] score: Delete unused variable

Sebastian Huber sebastian.huber at embedded-brains.de
Wed May 18 09:20:24 UTC 2016


Update #2555.
Update #2626.
---
 cpukit/score/src/threadrestart.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c
index 272fe7b..9642370 100644
--- a/cpukit/score/src/threadrestart.c
+++ b/cpukit/score/src/threadrestart.c
@@ -276,9 +276,8 @@ void _Thread_Life_action_handler(
 }
 
 static void _Thread_Start_life_change(
-  Thread_Control          *the_thread,
-  const Scheduler_Control *scheduler,
-  Priority_Control         priority
+  Thread_Control   *the_thread,
+  Priority_Control  priority
 )
 {
   the_thread->is_preemptible   = the_thread->Start.is_preemptible;
@@ -308,21 +307,19 @@ static void _Thread_Request_life_change(
 {
   Thread_Life_state        previous_life_state;
   ISR_lock_Context         lock_context;
-  const Scheduler_Control *scheduler;
 
   _Thread_State_acquire( the_thread, &lock_context );
   previous_life_state = the_thread->Life.state;
   the_thread->Life.state = previous_life_state | additional_life_state;
   _Thread_State_release( the_thread, &lock_context );
 
-  scheduler = _Scheduler_Get( the_thread );
   if ( the_thread == executing ) {
     Priority_Control unused;
 
     _Thread_Set_priority( the_thread, priority, &unused, true );
     _Thread_Start_life_change_for_executing( executing );
   } else if ( previous_life_state == THREAD_LIFE_NORMAL ) {
-    _Thread_Start_life_change( the_thread, scheduler, priority );
+    _Thread_Start_life_change( the_thread, priority );
   } else {
     _Thread_Clear_state( the_thread, STATES_SUSPENDED );
 
-- 
1.8.4.5




More information about the devel mailing list