diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-09 13:37:45 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-20 10:14:03 +0200 |
commit | e00b04383b0cec3a905f5cbff63b06fa2c2c61b1 (patch) | |
tree | 4aa0299bcd0b1e3034ca0b91e814a87151e3b6b9 | |
parent | score: Add _Scheduler_priority_Get_ready_queues() (diff) | |
download | rtems-e00b04383b0cec3a905f5cbff63b06fa2c2c61b1.tar.bz2 |
score: _Scheduler_priority_Ready_queue_first()
Remove superfluous check since a ready thread must exist.
-rw-r--r-- | cpukit/score/include/rtems/score/schedulerpriorityimpl.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/score/include/rtems/score/schedulerpriorityimpl.h b/cpukit/score/include/rtems/score/schedulerpriorityimpl.h index 0fbece6460..5983c743c3 100644 --- a/cpukit/score/include/rtems/score/schedulerpriorityimpl.h +++ b/cpukit/score/include/rtems/score/schedulerpriorityimpl.h @@ -148,10 +148,7 @@ RTEMS_INLINE_ROUTINE Thread_Control *_Scheduler_priority_Ready_queue_first( { Priority_Control index = _Priority_bit_map_Get_highest(); - if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) ) - return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] ); - - return NULL; + return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] ); } /** |