Changeset 4b4108a4 in rtems


Ignore:
Timestamp:
Jul 8, 2009, 5:56:07 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
0281931
Parents:
67d6947
Message:

2009-07-08 Joel Sherrill <joel.sherrill@…>

  • score/src/objectgetinfo.c: Clean up and eliminate unreachable code.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r67d6947 r4b4108a4  
     12009-07-08      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * score/src/objectgetinfo.c: Clean up and eliminate unreachable code.
     4
    152009-07-07      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • cpukit/score/src/objectgetinfo.c

    r67d6947 r4b4108a4  
    2727  int the_class_api_maximum;
    2828
    29   if ( !_Objects_Is_api_valid( the_api ) )
    30     return NULL;
    31 
    3229  if ( !the_class )
    3330    return NULL;
    3431
     32  /*
     33   *  This call implicitly validates the_api so we do not call
     34   *  _Objects_Is_api_valid above here.
     35   */
    3536  the_class_api_maximum = _Objects_API_maximum_class( the_api );
    36   if ( the_class_api_maximum == 0 ||
    37        the_class > (uint32_t) the_class_api_maximum )
     37  if ( the_class_api_maximum == 0 )
     38    return NULL;
     39
     40  if ( the_class > (uint32_t) the_class_api_maximum )
    3841    return NULL;
    3942
Note: See TracChangeset for help on using the changeset viewer.