summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectmp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 11:53:41 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 16:16:59 +0200
commit956b8e5047e8736257df80bbb39648b9872ecdbf (patch)
tree578cd0512af40f1020ea5bc22a61ce52e0a50517 /cpukit/score/src/objectmp.c
parentposix: Add const to _POSIX_Keys_Key_value_find() (diff)
downloadrtems-956b8e5047e8736257df80bbb39648b9872ecdbf.tar.bz2
mpci: Simplify _Objects_MP_Is_remote()
Diffstat (limited to 'cpukit/score/src/objectmp.c')
-rw-r--r--cpukit/score/src/objectmp.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/cpukit/score/src/objectmp.c b/cpukit/score/src/objectmp.c
index 0df9190beb..0628544f70 100644
--- a/cpukit/score/src/objectmp.c
+++ b/cpukit/score/src/objectmp.c
@@ -351,9 +351,9 @@ Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search(
return status;
}
-Objects_Locations _Objects_MP_Is_remote(
- Objects_Information *information,
- Objects_Id the_id
+bool _Objects_MP_Is_remote(
+ Objects_Id the_id,
+ const Objects_Information *information
)
{
Objects_MP_Control *the_global_object;
@@ -371,11 +371,7 @@ Objects_Locations _Objects_MP_Is_remote(
_Objects_MP_Global_release( &lock_context );
- if ( the_global_object != NULL ) {
- return OBJECTS_REMOTE;
- } else {
- return OBJECTS_ERROR;
- }
+ return the_global_object != NULL;
}
Objects_MP_Control *_Objects_MP_Allocate_global_object( void )