summaryrefslogtreecommitdiffstats
path: root/cpukit/itron/src/rel_wai.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/itron/src/rel_wai.c')
-rw-r--r--cpukit/itron/src/rel_wai.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/cpukit/itron/src/rel_wai.c b/cpukit/itron/src/rel_wai.c
index 81d7e6dc94..1fb3cbbcd4 100644
--- a/cpukit/itron/src/rel_wai.c
+++ b/cpukit/itron/src/rel_wai.c
@@ -28,16 +28,10 @@ ER rel_wai(
Objects_Locations location;
the_thread = _ITRON_Task_Get( tskid, &location );
- if (!the_thread)
- _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );
-
- _Thread_Disable_dispatch();
-
switch ( location ) {
case OBJECTS_REMOTE:
case OBJECTS_ERROR:
- _Thread_Enable_dispatch();
- return _ITRON_Task_Clarify_get_id_error( tskid );
+ _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );
case OBJECTS_LOCAL:
/*