summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectget.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/objectget.c')
-rw-r--r--cpukit/score/src/objectget.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/objectget.c b/cpukit/score/src/objectget.c
index 89fc59d607..276c96094c 100644
--- a/cpukit/score/src/objectget.c
+++ b/cpukit/score/src/objectget.c
@@ -69,12 +69,12 @@ Objects_Control *_Objects_Get(
* it may be global in a multiprocessing system. But it is clearly
* invalid on a single processor system.
*/
- *location = OBJECTS_ERROR;
#if defined(RTEMS_MULTIPROCESSING)
- _Objects_MP_Is_remote( information, id, location, &the_object );
- return the_object;
+ *location = _Objects_MP_Is_remote( information, id );
#else
- return NULL;
+ *location = OBJECTS_ERROR;
#endif
+
+ return NULL;
}