1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

Get rid of superfluous assignments in sem_timedwait

This commit is contained in:
Thomas Schwinge
2012-03-07 04:11:11 -05:00
committed by Ulrich Drepper
parent a14d084250
commit 840df61ea4
4 changed files with 12 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/* sem_timedwait -- wait on a semaphore. Generic futex-using version.
Copyright (C) 2003, 2007 Free Software Foundation, Inc.
Copyright (C) 2003, 2007, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.
@@ -83,7 +83,6 @@ sem_timedwait (sem_t *sem, const struct timespec *abstime)
}
/* Already timed out? */
err = -ETIMEDOUT;
if (sec < 0)
{
__set_errno (ETIMEDOUT);