diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 1999-11-15 21:35:14 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 1999-11-15 21:35:14 +0000 |
commit | 2578970553ccf4e6e5e3088230684faec6f48006 (patch) | |
tree | f1265591057a5d85ccbf2b53b539f8b4ce58579c /c/src/exec/itron/src/chg_pri.c | |
parent | + Modified to use new Thread_Reset routine instead of the restart method. (diff) | |
download | rtems-2578970553ccf4e6e5e3088230684faec6f48006.tar.bz2 |
+ Fixed files to consistantly use a case of the location after calls
to ITRON_Task_Get.
+ Modified to consistantly call _ITRON_return_errorno with E_OK.
+ Optimized the code to not disable dispatch prior to checking input values.
Diffstat (limited to 'c/src/exec/itron/src/chg_pri.c')
-rw-r--r-- | c/src/exec/itron/src/chg_pri.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/exec/itron/src/chg_pri.c b/c/src/exec/itron/src/chg_pri.c index abbc9f274a..37d9d8f172 100644 --- a/c/src/exec/itron/src/chg_pri.c +++ b/c/src/exec/itron/src/chg_pri.c @@ -33,7 +33,7 @@ ER chg_pri( switch ( location ) { case OBJECTS_REMOTE: case OBJECTS_ERROR: - _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid )); + return _ITRON_Task_Clarify_get_id_error( tskid ); case OBJECTS_LOCAL: if (_States_Is_dormant( the_thread->current_state )) @@ -54,10 +54,10 @@ ER chg_pri( the_thread->current_priority > new_priority ) _Thread_Change_priority( the_thread, new_priority, FALSE ); - _ITRON_return_errorno( E_OK ); + break; } - _ITRON_return_errorno( E_OBJ ); /* XXX - Should never get here */ + _ITRON_return_errorno( E_OK ); } |