From e0dcf294382b4b9f2402d9f42813468dfdbf7b18 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 5 Apr 2019 09:58:07 +0200 Subject: Remove superfluous run-time check The _Objects_Information_table[ the_api ] is never NULL for a valid API index. --- cpukit/score/src/threaditerate.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cpukit/score/src') diff --git a/cpukit/score/src/threaditerate.c b/cpukit/score/src/threaditerate.c index 8d1614ab9b..78ccb6756c 100644 --- a/cpukit/score/src/threaditerate.c +++ b/cpukit/score/src/threaditerate.c @@ -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 ) { -- cgit v1.2.3