mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 16:05:03 +08:00
Remove superfluous run-time check
The _Objects_Information_table[ the_api ] is never NULL for a valid API index.
This commit is contained in:
@@ -196,13 +196,7 @@ int _POSIX_signals_Send(
|
||||
interested_priority = UINT64_MAX;
|
||||
|
||||
for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
|
||||
|
||||
/*
|
||||
* This can occur when no one is interested and an API is not configured.
|
||||
*/
|
||||
if ( !_Objects_Information_table[ the_api ] )
|
||||
continue;
|
||||
|
||||
_Assert( _Objects_Information_table[ the_api ] != NULL );
|
||||
the_info = _Objects_Information_table[ the_api ][ 1 ];
|
||||
if ( !the_info )
|
||||
continue;
|
||||
|
||||
@@ -30,10 +30,7 @@ void _Thread_Iterate(
|
||||
Objects_Maximum maximum;
|
||||
Objects_Maximum index;
|
||||
|
||||
if ( _Objects_Information_table[ api_index ] == NULL ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
_Assert( _Objects_Information_table[ api_index ] != NULL );
|
||||
information = _Objects_Information_table[ api_index ][ 1 ];
|
||||
|
||||
if ( information == NULL ) {
|
||||
|
||||
Reference in New Issue
Block a user