diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-15 16:27:56 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-21 07:29:37 +0200 |
commit | bbd6d27af8102bc1c89031c78c5a458c1af06cee (patch) | |
tree | 765df067f8c9694326bbb4d42bbea146194b1735 /cpukit/posix/src/prwlockinit.c | |
parent | sptests/spsysinit01: Fix warning (diff) | |
download | rtems-bbd6d27af8102bc1c89031c78c5a458c1af06cee.tar.bz2 |
score: Delete unused CORE_RWLock_Attributes
Diffstat (limited to 'cpukit/posix/src/prwlockinit.c')
-rw-r--r-- | cpukit/posix/src/prwlockinit.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cpukit/posix/src/prwlockinit.c b/cpukit/posix/src/prwlockinit.c index 7cf781ff2a..afb70563e0 100644 --- a/cpukit/posix/src/prwlockinit.c +++ b/cpukit/posix/src/prwlockinit.c @@ -97,7 +97,6 @@ int pthread_rwlock_init( ) { POSIX_RWLock_Control *the_rwlock; - CORE_RWLock_Attributes the_attributes; pthread_rwlockattr_t default_attr; const pthread_rwlockattr_t *the_attr; @@ -131,13 +130,6 @@ int pthread_rwlock_init( return EINVAL; } - /* - * Convert from POSIX attributes to Core RWLock attributes - * - * NOTE: Currently there are no core rwlock attributes - */ - _CORE_RWLock_Initialize_attributes( &the_attributes ); - the_rwlock = _POSIX_RWLock_Allocate(); if ( !the_rwlock ) { @@ -145,7 +137,7 @@ int pthread_rwlock_init( return EAGAIN; } - _CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes ); + _CORE_RWLock_Initialize( &the_rwlock->RWLock ); _Objects_Open_u32( &_POSIX_RWLock_Information, |