Changeset e00b0438 in rtems


Ignore:
Timestamp:
Aug 9, 2013, 11:37:45 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
a78e575
Parents:
f20b3d56
git-author:
Sebastian Huber <sebastian.huber@…> (08/09/13 11:37:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/20/13 08:14:03)
Message:

score: _Scheduler_priority_Ready_queue_first()

Remove superfluous check since a ready thread must exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/schedulerpriorityimpl.h

    rf20b3d56 re00b0438  
    149149  Priority_Control index = _Priority_bit_map_Get_highest();
    150150
    151   if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )
    152     return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
    153 
    154   return NULL;
     151  return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
    155152}
    156153
Note: See TracChangeset for help on using the changeset viewer.