diff options
Diffstat (limited to 'cpukit/score/src/objectgetnoprotection.c')
-rw-r--r-- | cpukit/score/src/objectgetnoprotection.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/score/src/objectgetnoprotection.c b/cpukit/score/src/objectgetnoprotection.c index aebe6c798a..eaa172c83b 100644 --- a/cpukit/score/src/objectgetnoprotection.c +++ b/cpukit/score/src/objectgetnoprotection.c @@ -21,9 +21,8 @@ #include <rtems/score/objectimpl.h> Objects_Control *_Objects_Get_no_protection( - Objects_Information *information, - Objects_Id id, - Objects_Locations *location + const Objects_Information *information, + Objects_Id id ) { Objects_Control *the_object; @@ -37,7 +36,6 @@ Objects_Control *_Objects_Get_no_protection( if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { - *location = OBJECTS_LOCAL; return the_object; } } @@ -46,6 +44,5 @@ Objects_Control *_Objects_Get_no_protection( * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ - *location = OBJECTS_ERROR; return NULL; } |