diff options
Diffstat (limited to 'cpukit/rtems/src/timergetinfo.c')
-rw-r--r-- | cpukit/rtems/src/timergetinfo.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/cpukit/rtems/src/timergetinfo.c b/cpukit/rtems/src/timergetinfo.c index 0639a8a245..bcf8487a47 100644 --- a/cpukit/rtems/src/timergetinfo.c +++ b/cpukit/rtems/src/timergetinfo.c @@ -55,13 +55,6 @@ rtems_status_code rtems_timer_get_information( the_timer = _Timer_Get( id, &location ); switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: /* should never return this */ - return RTEMS_INTERNAL_ERROR; -#endif - - case OBJECTS_ERROR: - return RTEMS_INVALID_ID; case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; @@ -70,7 +63,13 @@ rtems_status_code rtems_timer_get_information( the_info->stop_time = the_timer->Ticker.stop_time; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; + +#if defined(RTEMS_MULTIPROCESSING) + case OBJECTS_REMOTE: /* should never return this */ +#endif + case OBJECTS_ERROR: + break; } - return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ + return RTEMS_INVALID_ID; } |