diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-03 09:17:45 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-04 07:24:30 +0200 |
commit | 469dc4776d2fbdd01dc1342e8b3586e41dba133f (patch) | |
tree | 489edb41af37b8df95186d1b93362d383f8c9703 | |
parent | score: Fix _Objects_Id_to_name() (diff) | |
download | rtems-469dc4776d2fbdd01dc1342e8b3586e41dba133f.tar.bz2 |
score: Simplify _Objects_Id_to_name()
-rw-r--r-- | cpukit/score/src/objectidtoname.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cpukit/score/src/objectidtoname.c b/cpukit/score/src/objectidtoname.c index 9f50687c60..115d0e99b6 100644 --- a/cpukit/score/src/objectidtoname.c +++ b/cpukit/score/src/objectidtoname.c @@ -27,8 +27,7 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( { Objects_Id tmpId; Objects_Information *information; - Objects_Control *the_object = (Objects_Control *) 0; - Objects_Locations ignored_location; + Objects_Control *the_object; ISR_lock_Context lock_context; /* @@ -46,11 +45,10 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( return OBJECTS_INVALID_ID; #endif - the_object = _Objects_Get_isr_disable( - information, + the_object = _Objects_Get_local( tmpId, - &ignored_location, - &lock_context + &lock_context, + information ); if ( !the_object ) return OBJECTS_INVALID_ID; |