From 956b8e5047e8736257df80bbb39648b9872ecdbf Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 20 May 2016 11:53:41 +0200 Subject: mpci: Simplify _Objects_MP_Is_remote() --- cpukit/score/src/objectgetisr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpukit/score/src/objectgetisr.c') diff --git a/cpukit/score/src/objectgetisr.c b/cpukit/score/src/objectgetisr.c index 3a185ce125..71f62fe482 100644 --- a/cpukit/score/src/objectgetisr.c +++ b/cpukit/score/src/objectgetisr.c @@ -43,10 +43,12 @@ Objects_Control *_Objects_Get_isr_disable( return NULL; } -#if defined(RTEMS_MULTIPROCESSING) - *location = _Objects_MP_Is_remote( information, id ); -#else *location = OBJECTS_ERROR; + +#if defined(RTEMS_MULTIPROCESSING) + if ( _Objects_MP_Is_remote( id, information ) ) { + *location = OBJECTS_REMOTE; + } #endif return NULL; -- cgit v1.2.3