diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-21 14:33:01 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-02 10:05:44 +0100 |
commit | 9c238e1bd4bb8d3874bec65757db31d63db20d40 (patch) | |
tree | afe70511271f2408ee487e1c5c6efcd1a51e0a4c /cpukit/score/src/schedulerprioritychangepriority.c | |
parent | 97f7dac6604b448f0c4ee10f02d192ea42bc6aaa (diff) |
score: Simplify update priority scheduler op
Remove unused return status.
Diffstat (limited to 'cpukit/score/src/schedulerprioritychangepriority.c')
-rw-r--r-- | cpukit/score/src/schedulerprioritychangepriority.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cpukit/score/src/schedulerprioritychangepriority.c b/cpukit/score/src/schedulerprioritychangepriority.c index 339168f20c..eb640fe683 100644 --- a/cpukit/score/src/schedulerprioritychangepriority.c +++ b/cpukit/score/src/schedulerprioritychangepriority.c @@ -21,7 +21,7 @@ #include <rtems/score/schedulerpriorityimpl.h> -Scheduler_Void_or_thread _Scheduler_priority_Update_priority( +void _Scheduler_priority_Update_priority( const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node @@ -34,7 +34,7 @@ Scheduler_Void_or_thread _Scheduler_priority_Update_priority( if ( !_Thread_Is_ready( the_thread ) ) { /* Nothing to do */ - SCHEDULER_RETURN_VOID_OR_NULL; + return; } the_node = _Scheduler_priority_Node_downcast( node ); @@ -43,7 +43,7 @@ Scheduler_Void_or_thread _Scheduler_priority_Update_priority( if ( priority == the_node->Ready_queue.current_priority ) { /* Nothing to do */ - SCHEDULER_RETURN_VOID_OR_NULL; + return; } context = _Scheduler_priority_Get_context( scheduler ); @@ -76,6 +76,4 @@ Scheduler_Void_or_thread _Scheduler_priority_Update_priority( } _Scheduler_priority_Schedule_body( scheduler, the_thread, false ); - - SCHEDULER_RETURN_VOID_OR_NULL; } |