summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/barriercreate.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/barriercreate.c')
-rw-r--r--cpukit/rtems/src/barriercreate.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/cpukit/rtems/src/barriercreate.c b/cpukit/rtems/src/barriercreate.c
index 6e6b294832..99d916d8c7 100644
--- a/cpukit/rtems/src/barriercreate.c
+++ b/cpukit/rtems/src/barriercreate.c
@@ -63,14 +63,7 @@ rtems_status_code rtems_barrier_create(
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
- _Objects_Open(
- &_Barrier_Information,
- &the_barrier->Object,
- (Objects_Name) name
- );
-
- *id = the_barrier->Object.id;
-
+ *id = _Objects_Open_u32( &_Barrier_Information, &the_barrier->Object, name );
_Objects_Allocator_unlock();
return RTEMS_SUCCESSFUL;
}