From b9f952254b7f9afeb287ab6d846a56a512a480d3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 8 Oct 2014 10:31:36 +0200 Subject: posix: Add auto initializaton for rwlock --- cpukit/posix/src/prwlockdestroy.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'cpukit/posix/src/prwlockdestroy.c') 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 ) { -- cgit v1.2.3