summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pspintrylock.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/pspintrylock.c')
-rw-r--r--cpukit/posix/src/pspintrylock.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/cpukit/posix/src/pspintrylock.c b/cpukit/posix/src/pspintrylock.c
index 86c490f1cf..ba72179470 100644
--- a/cpukit/posix/src/pspintrylock.c
+++ b/cpukit/posix/src/pspintrylock.c
@@ -47,16 +47,18 @@ int pthread_spin_trylock(
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
-#if defined(RTEMS_MULTIPROCESSING)
- case OBJECTS_REMOTE:
-#endif
- case OBJECTS_ERROR:
- return EINVAL;
case OBJECTS_LOCAL:
status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, FALSE, 0 );
_Thread_Enable_dispatch();
return _POSIX_Spinlock_Translate_core_spinlock_return_code( status );
+
+#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
+#endif
+ case OBJECTS_ERROR:
+ break;
}
- return POSIX_BOTTOM_REACHED();
+
+ return EINVAL;
}