diff options
Diffstat (limited to 'cpukit/rtems/src/taskvariableget.c')
-rw-r--r-- | cpukit/rtems/src/taskvariableget.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cpukit/rtems/src/taskvariableget.c b/cpukit/rtems/src/taskvariableget.c index 0736d131af..8b200f8779 100644 --- a/cpukit/rtems/src/taskvariableget.c +++ b/cpukit/rtems/src/taskvariableget.c @@ -2,7 +2,7 @@ * rtems_task_variable_get - Get a per-task variable * * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2007. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -44,17 +44,15 @@ rtems_status_code rtems_task_variable_get( the_thread = _Thread_Get (tid, &location); switch (location) { - case OBJECTS_REMOTE: #if defined(RTEMS_MULTIPROCESSING) + case OBJECTS_REMOTE: _Thread_Dispatch(); return RTEMS_ILLEGAL_ON_REMOTE_OBJECT; #endif case OBJECTS_ERROR: - return RTEMS_INVALID_ID; - default: - return RTEMS_INTERNAL_ERROR; + return RTEMS_INVALID_ID; case OBJECTS_LOCAL: |