summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/ratemoncancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/ratemoncancel.c')
-rw-r--r--cpukit/rtems/src/ratemoncancel.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/cpukit/rtems/src/ratemoncancel.c b/cpukit/rtems/src/ratemoncancel.c
index 396fd79f32..829724c39c 100644
--- a/cpukit/rtems/src/ratemoncancel.c
+++ b/cpukit/rtems/src/ratemoncancel.c
@@ -46,13 +46,6 @@ rtems_status_code rtems_rate_monotonic_cancel(
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
-#if defined(RTEMS_MULTIPROCESSING)
- case OBJECTS_REMOTE:
- return RTEMS_INTERNAL_ERROR; /* should never return this */
-#endif
-
- case OBJECTS_ERROR:
- return RTEMS_INVALID_ID;
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
@@ -63,7 +56,13 @@ rtems_status_code rtems_rate_monotonic_cancel(
the_period->state = RATE_MONOTONIC_INACTIVE;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
+
+#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
+#endif
+ case OBJECTS_ERROR:
+ break;
}
- return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */
+ return RTEMS_INVALID_ID;
}