summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectmp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-13 13:47:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-14 18:10:50 +0200
commit3972085dbab9b05e839b2612abf625c6097a180b (patch)
tree6ffb806aab62a1e0bc809bf67de8d39d2776f0d4 /cpukit/score/src/objectmp.c
parentrtems: Remove superfluous include (diff)
downloadrtems-3972085dbab9b05e839b2612abf625c6097a180b.tar.bz2
Remove *_Is_null() inline functions
Simply compare the values against NULL.
Diffstat (limited to 'cpukit/score/src/objectmp.c')
-rw-r--r--cpukit/score/src/objectmp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/score/src/objectmp.c b/cpukit/score/src/objectmp.c
index 74d55305a9..612fdacca0 100644
--- a/cpukit/score/src/objectmp.c
+++ b/cpukit/score/src/objectmp.c
@@ -231,13 +231,14 @@ bool _Objects_MP_Allocate_and_open (
bool is_fatal_error
)
{
- Objects_MP_Control *the_global_object;
+ Objects_MP_Control *the_global_object;
the_global_object = _Objects_MP_Allocate_global_object();
- if ( _Objects_MP_Is_null_global_object( the_global_object ) ) {
- if ( is_fatal_error == false )
+ if ( the_global_object == NULL ) {
+ if ( !is_fatal_error ) {
return false;
+ }
_Internal_error( INTERNAL_ERROR_OUT_OF_GLOBAL_OBJECTS );
}