summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectallocatebyindex.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-07-06 19:09:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-07-06 19:09:27 +0000
commit3b4413c08f0e028f0095ec5b50f90e4169e6689b (patch)
tree23a0d5308d568e8f2daabfc6ee19377e8dcb032d /cpukit/score/src/objectallocatebyindex.c
parentNew file. Convert ID to pointer and return with interrupts -- not (diff)
downloadrtems-3b4413c08f0e028f0095ec5b50f90e4169e6689b.tar.bz2
Directly index local table to avoid error check.
Diffstat (limited to 'cpukit/score/src/objectallocatebyindex.c')
-rw-r--r--cpukit/score/src/objectallocatebyindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/objectallocatebyindex.c b/cpukit/score/src/objectallocatebyindex.c
index d46399c535..6de641ae0c 100644
--- a/cpukit/score/src/objectallocatebyindex.c
+++ b/cpukit/score/src/objectallocatebyindex.c
@@ -44,7 +44,7 @@ Objects_Control *_Objects_Allocate_by_index(
Objects_Control *the_object;
if ( index && information->maximum >= index ) {
- the_object = _Objects_Get_local_object( information, index );
+ the_object = information->local_table[ index ];
if ( the_object )
return NULL;