diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-07-06 19:09:27 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-07-06 19:09:27 +0000 |
commit | 3b4413c08f0e028f0095ec5b50f90e4169e6689b (patch) | |
tree | 23a0d5308d568e8f2daabfc6ee19377e8dcb032d /c/src/exec/score/src/objectgetbyindex.c | |
parent | New file. Convert ID to pointer and return with interrupts -- not (diff) | |
download | rtems-3b4413c08f0e028f0095ec5b50f90e4169e6689b.tar.bz2 |
Directly index local table to avoid error check.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/score/src/objectgetbyindex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/exec/score/src/objectgetbyindex.c b/c/src/exec/score/src/objectgetbyindex.c index 6cfc2b98cd..7c7c89c2af 100644 --- a/c/src/exec/score/src/objectgetbyindex.c +++ b/c/src/exec/score/src/objectgetbyindex.c @@ -54,7 +54,8 @@ Objects_Control *_Objects_Get_by_index( if ( information->maximum >= index ) { _Thread_Disable_dispatch(); - if ( (the_object = _Objects_Get_local_object( information, index )) != NULL ) { + the_object = information->local_table[ index ]; + if ( the_object ) { *location = OBJECTS_LOCAL; return( the_object ); } |