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/prwlocktrywrlock.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'cpukit/posix/src/prwlocktrywrlock.c') diff --git a/cpukit/posix/src/prwlocktrywrlock.c b/cpukit/posix/src/prwlocktrywrlock.c index 79cfb931c4..7afd41a17a 100644 --- a/cpukit/posix/src/prwlocktrywrlock.c +++ b/cpukit/posix/src/prwlocktrywrlock.c @@ -45,9 +45,6 @@ int pthread_rwlock_trywrlock( Objects_Locations location; Thread_Control *executing; - if ( !rwlock ) - return EINVAL; - the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { -- cgit v1.2.3