diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-15 04:00:25 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-15 04:00:25 +0000 |
commit | 7ded4e37a31ddf20c2720730b34b0597f3d2d457 (patch) | |
tree | 47b44f90685b414a7389521b6c9ebd116e303295 /cpukit/itron/src/ter_tsk.c | |
parent | 2004-04-14 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-7ded4e37a31ddf20c2720730b34b0597f3d2d457.tar.bz2 |
Remove unnecessary white spaces.
Diffstat (limited to 'cpukit/itron/src/ter_tsk.c')
-rw-r--r-- | cpukit/itron/src/ter_tsk.c | 19 |
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 ); } - - - - - - - |