summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mutextimedlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/mutextimedlock.c')
-rw-r--r--cpukit/posix/src/mutextimedlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/posix/src/mutextimedlock.c b/cpukit/posix/src/mutextimedlock.c
index 576eba9eb8..7773d84af6 100644
--- a/cpukit/posix/src/mutextimedlock.c
+++ b/cpukit/posix/src/mutextimedlock.c
@@ -72,10 +72,10 @@ int pthread_mutex_timedlock(
* make sure the right reason is returned.
*/
if ( !do_wait && (lock_status == EBUSY) ) {
- if ( lock_status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
+ if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
return EINVAL;
- if ( lock_status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
- lock_status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
+ if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
+ status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
}