Changeset e0dcf294 in rtems


Ignore:
Timestamp:
Apr 5, 2019, 7:58:07 AM (8 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
222570a
Parents:
b8a0a496
git-author:
Sebastian Huber <sebastian.huber@…> (04/05/19 07:58:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/09/19 05:31:25)
Message:

Remove superfluous run-time check

The _Objects_Information_table[ the_api ] is never NULL for a valid API
index.

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/killinfo.c

    rb8a0a496 re0dcf294  
    197197
    198198  for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
    199 
    200     /*
    201      *  This can occur when no one is interested and an API is not configured.
    202      */
    203     if ( !_Objects_Information_table[ the_api ] )
    204       continue;
    205 
     199    _Assert( _Objects_Information_table[ the_api ] != NULL );
    206200    the_info = _Objects_Information_table[ the_api ][ 1 ];
    207201    if ( !the_info )
  • cpukit/score/src/threaditerate.c

    rb8a0a496 re0dcf294  
    3131    Objects_Maximum            index;
    3232
    33     if ( _Objects_Information_table[ api_index ] == NULL ) {
    34       continue;
    35     }
    36 
     33    _Assert( _Objects_Information_table[ api_index ] != NULL );
    3734    information = _Objects_Information_table[ api_index ][ 1 ];
    3835
Note: See TracChangeset for help on using the changeset viewer.