mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-17 13:01:12 +03:00
Get rid of superfluous assignments in sem_timedwait
This commit is contained in:
committed by
Ulrich Drepper
parent
a14d084250
commit
840df61ea4
@@ -1,3 +1,12 @@
|
|||||||
|
2012-01-23 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Get rid of
|
||||||
|
superfluous assignment.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/sem_timedwait.c (sem_timedwait):
|
||||||
|
Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
|
||||||
|
(sem_timedwait): Likewise.
|
||||||
|
|
||||||
2012-03-06 Ulrich Drepper <drepper@gmail.com>
|
2012-03-06 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
* sysdeps/pthread/bits/libc-lock.h: Move information not needed in
|
* sysdeps/pthread/bits/libc-lock.h: Move information not needed in
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* sem_timedwait -- wait on a semaphore. Generic futex-using version.
|
/* 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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.
|
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? */
|
/* Already timed out? */
|
||||||
err = -ETIMEDOUT;
|
|
||||||
if (sec < 0)
|
if (sec < 0)
|
||||||
{
|
{
|
||||||
__set_errno (ETIMEDOUT);
|
__set_errno (ETIMEDOUT);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* sem_timedwait -- wait on a semaphore. Generic futex-using version.
|
/* 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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.
|
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? */
|
/* Already timed out? */
|
||||||
err = -ETIMEDOUT;
|
|
||||||
if (sec < 0)
|
if (sec < 0)
|
||||||
{
|
{
|
||||||
__set_errno (ETIMEDOUT);
|
__set_errno (ETIMEDOUT);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* sem_timedwait -- wait on a semaphore. SPARC version.
|
/* sem_timedwait -- wait on a semaphore. SPARC version.
|
||||||
Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc.
|
Copyright (C) 2003, 2006, 2007, 2012 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.
|
Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.
|
||||||
|
|
||||||
@@ -102,7 +102,6 @@ sem_timedwait (sem_t *sem, const struct timespec *abstime)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Already timed out? */
|
/* Already timed out? */
|
||||||
err = -ETIMEDOUT;
|
|
||||||
if (sec < 0)
|
if (sec < 0)
|
||||||
{
|
{
|
||||||
__set_errno (ETIMEDOUT);
|
__set_errno (ETIMEDOUT);
|
||||||
|
Reference in New Issue
Block a user