summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-04-05 09:58:07 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-04-09 07:31:25 +0200
commite0dcf294382b4b9f2402d9f42813468dfdbf7b18 (patch)
tree46b6810f05c01046ad11f0eb1ce6c0ec317f260c /cpukit/posix
parentbsps/arm: Fix ARMv7-M CPU counter (diff)
downloadrtems-e0dcf294382b4b9f2402d9f42813468dfdbf7b18.tar.bz2
Remove superfluous run-time check
The _Objects_Information_table[ the_api ] is never NULL for a valid API index.
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/src/killinfo.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c
index 0031b7bdd8..742f9fb2c1 100644
--- a/cpukit/posix/src/killinfo.c
+++ b/cpukit/posix/src/killinfo.c
@@ -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;