summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/prwlockdestroy.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-10-08 10:31:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-10-08 11:26:27 +0200
commitb9f952254b7f9afeb287ab6d846a56a512a480d3 (patch)
tree67d466d323a07abad18465bbfa1572097bb645ab /cpukit/posix/src/prwlockdestroy.c
parentposix: Fix mutex auto initialization (diff)
downloadrtems-b9f952254b7f9afeb287ab6d846a56a512a480d3.tar.bz2
posix: Add auto initializaton for rwlock
Diffstat (limited to 'cpukit/posix/src/prwlockdestroy.c')
-rw-r--r--cpukit/posix/src/prwlockdestroy.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/cpukit/posix/src/prwlockdestroy.c b/cpukit/posix/src/prwlockdestroy.c
index d1261ca4fb..f3e08add06 100644
--- a/cpukit/posix/src/prwlockdestroy.c
+++ b/cpukit/posix/src/prwlockdestroy.c
@@ -41,9 +41,6 @@ int pthread_rwlock_destroy(
POSIX_RWLock_Control *the_rwlock = NULL;
Objects_Locations location;
- if ( !rwlock )
- return EINVAL;
-
_Objects_Allocator_lock();
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {