Changeset 04bf7cb in rtems


Ignore:
Timestamp:
Dec 6, 2011, 7:12:42 AM (7 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
6425dc5
Parents:
e2bcb32
Message:

2011-12-06 Ralf Corsépius <ralf.corsepius@…>

  • score/src/schedulercbsattachthread.c, score/src/schedulercbsdestroyserver.c, score/src/schedulercbsdetachthread.c, score/src/schedulercbsgetapprovedbudget.c, score/src/schedulercbsgetexecutiontime.c, score/src/schedulercbsgetparameters.c, score/src/schedulercbsgetremainingbudget.c, score/src/schedulercbssetparameters.c: Remove checks for server_id < 0 (server_id is unsigned).
Location:
cpukit
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    re2bcb32 r04bf7cb  
     12011-12-06      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * score/src/schedulercbsattachthread.c,
     4        score/src/schedulercbsdestroyserver.c,
     5        score/src/schedulercbsdetachthread.c,
     6        score/src/schedulercbsgetapprovedbudget.c,
     7        score/src/schedulercbsgetexecutiontime.c,
     8        score/src/schedulercbsgetparameters.c,
     9        score/src/schedulercbsgetremainingbudget.c,
     10        score/src/schedulercbssetparameters.c:
     11        Remove checks for server_id < 0 (server_id is unsigned).
     12
    1132011-12-06      Ralf Corsépius <ralf.corsepius@rtems.org>
    214
  • cpukit/score/src/schedulercbsattachthread.c

    re2bcb32 r04bf7cb  
    2929  Scheduler_CBS_Per_thread *sched_info;
    3030
    31   if ( server_id < 0 || server_id >= _Scheduler_CBS_Maximum_servers )
     31  if ( server_id >= _Scheduler_CBS_Maximum_servers )
    3232    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
    3333
  • cpukit/score/src/schedulercbsdestroyserver.c

    re2bcb32 r04bf7cb  
    2626  rtems_id tid;
    2727
    28   if ( server_id < 0 || server_id >= _Scheduler_CBS_Maximum_servers )
     28  if ( server_id >= _Scheduler_CBS_Maximum_servers )
    2929    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
    3030
  • cpukit/score/src/schedulercbsdetachthread.c

    re2bcb32 r04bf7cb  
    3434  }
    3535
    36   if ( server_id < 0 || server_id >= _Scheduler_CBS_Maximum_servers )
     36  if ( server_id >= _Scheduler_CBS_Maximum_servers )
    3737    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
    3838  if ( !the_thread )
  • cpukit/score/src/schedulercbsgetapprovedbudget.c

    re2bcb32 r04bf7cb  
    2424)
    2525{
    26   if ( server_id < 0 || server_id >= _Scheduler_CBS_Maximum_servers )
     26  if ( server_id >= _Scheduler_CBS_Maximum_servers )
    2727    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
    2828  if ( !_Scheduler_CBS_Server_list[server_id] )
  • cpukit/score/src/schedulercbsgetexecutiontime.c

    re2bcb32 r04bf7cb  
    2828  Thread_Control *the_thread;
    2929
    30   if ( server_id < 0 || server_id >= _Scheduler_CBS_Maximum_servers )
     30  if ( server_id >= _Scheduler_CBS_Maximum_servers )
    3131    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
    3232  if ( !_Scheduler_CBS_Server_list[server_id] )
  • cpukit/score/src/schedulercbsgetparameters.c

    re2bcb32 r04bf7cb  
    2424)
    2525{
    26   if ( server_id < 0 || server_id >= _Scheduler_CBS_Maximum_servers )
     26  if ( server_id >= _Scheduler_CBS_Maximum_servers )
    2727    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
    2828  if ( !_Scheduler_CBS_Server_list[server_id] )
  • cpukit/score/src/schedulercbsgetremainingbudget.c

    re2bcb32 r04bf7cb  
    2727  Thread_Control *the_thread;
    2828
    29   if ( server_id < 0 || server_id >= _Scheduler_CBS_Maximum_servers )
     29  if ( server_id >= _Scheduler_CBS_Maximum_servers )
    3030    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
    3131  if ( !_Scheduler_CBS_Server_list[server_id] )
  • cpukit/score/src/schedulercbssetparameters.c

    re2bcb32 r04bf7cb  
    2424)
    2525{
    26   if ( server_id < 0 || server_id >= _Scheduler_CBS_Maximum_servers )
     26  if ( server_id >= _Scheduler_CBS_Maximum_servers )
    2727    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
    2828
Note: See TracChangeset for help on using the changeset viewer.