summaryrefslogtreecommitdiffstats
path: root/cpukit/itron/src/ter_tsk.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/itron/src/ter_tsk.c')
-rw-r--r--cpukit/itron/src/ter_tsk.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/cpukit/itron/src/ter_tsk.c b/cpukit/itron/src/ter_tsk.c
index d2c86a4e6b..f3111f5d46 100644
--- a/cpukit/itron/src/ter_tsk.c
+++ b/cpukit/itron/src/ter_tsk.c
@@ -37,29 +37,22 @@ ER ter_tsk(
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
+ case OBJECTS_REMOTE:
case OBJECTS_ERROR:
return _ITRON_Task_Clarify_get_id_error( tskid );
-
+
case OBJECTS_LOCAL:
-
+
if ( _Thread_Is_executing( the_thread ) )
_ITRON_return_errorno( E_OBJ );
-
+
if ( _States_Is_dormant( the_thread->current_state ) )
_ITRON_return_errorno( E_OBJ );
_Thread_Restart( the_thread, NULL, 0 );
_Thread_Set_state( the_thread, STATES_DORMANT );
break;
- }
+ }
- _ITRON_return_errorno( E_OK );
+ _ITRON_return_errorno( E_OK );
}
-
-
-
-
-
-
-