score: _Scheduler_priority_Ready_queue_first()

Remove superfluous check since a ready thread must exist.
This commit is contained in:
Sebastian Huber
2013-08-09 13:37:45 +02:00
parent f20b3d568d
commit e00b04383b

View File

@@ -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 ] );
}
/**