diff options
Diffstat (limited to 'cpukit/posix/src/semgetvalue.c')
-rw-r--r-- | cpukit/posix/src/semgetvalue.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/posix/src/semgetvalue.c b/cpukit/posix/src/semgetvalue.c index c8c3222443..f3883f3435 100644 --- a/cpukit/posix/src/semgetvalue.c +++ b/cpukit/posix/src/semgetvalue.c @@ -35,14 +35,11 @@ int sem_getvalue( the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { - case OBJECTS_ERROR: - rtems_set_errno_and_return_minus_one( EINVAL ); #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: - _Thread_Dispatch(); - return POSIX_MP_NOT_IMPLEMENTED(); - rtems_set_errno_and_return_minus_one( EINVAL ); #endif + case OBJECTS_ERROR: + rtems_set_errno_and_return_minus_one( EINVAL ); case OBJECTS_LOCAL: *sval = _CORE_semaphore_Get_count( &the_semaphore->Semaphore ); _Thread_Enable_dispatch(); |