mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-27 06:58:19 +00:00
2009-07-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/objectgetinfo.c: Clean up and eliminate unreachable code.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2009-07-08 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* score/src/objectgetinfo.c: Clean up and eliminate unreachable code.
|
||||
|
||||
2009-07-07 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* rtems/src/rtemsobjectapimaximumclass.c,
|
||||
|
||||
@@ -26,15 +26,18 @@ Objects_Information *_Objects_Get_information(
|
||||
Objects_Information *info;
|
||||
int the_class_api_maximum;
|
||||
|
||||
if ( !_Objects_Is_api_valid( the_api ) )
|
||||
return NULL;
|
||||
|
||||
if ( !the_class )
|
||||
return NULL;
|
||||
|
||||
/*
|
||||
* This call implicitly validates the_api so we do not call
|
||||
* _Objects_Is_api_valid above here.
|
||||
*/
|
||||
the_class_api_maximum = _Objects_API_maximum_class( the_api );
|
||||
if ( the_class_api_maximum == 0 ||
|
||||
the_class > (uint32_t) the_class_api_maximum )
|
||||
if ( the_class_api_maximum == 0 )
|
||||
return NULL;
|
||||
|
||||
if ( the_class > (uint32_t) the_class_api_maximum )
|
||||
return NULL;
|
||||
|
||||
if ( !_Objects_Information_table[ the_api ] )
|
||||
|
||||
Reference in New Issue
Block a user