summaryrefslogtreecommitdiff
path: root/nptl/pthread_cond_timedwait.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-11-21 20:00:11 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-11-21 20:00:11 +0000
commitfac9916c962ffa03350322d616c44f07467850eb (patch)
treecf5504adb2c9f258ab9e1c2487efabbe3f234e81 /nptl/pthread_cond_timedwait.c
parentc3151ad1004f97b8595449c8ed9af01c5d58906f (diff)
Remove unused variable from pthread_cond_timedwait.c.
Diffstat (limited to 'nptl/pthread_cond_timedwait.c')
-rw-r--r--nptl/pthread_cond_timedwait.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/nptl/pthread_cond_timedwait.c b/nptl/pthread_cond_timedwait.c
index 2fcbc57c2a..ef33b966b8 100644
--- a/nptl/pthread_cond_timedwait.c
+++ b/nptl/pthread_cond_timedwait.c
@@ -115,11 +115,10 @@ __pthread_cond_timedwait (cond, mutex, abstime)
{
# ifdef __NR_clock_gettime
INTERNAL_SYSCALL_DECL (err);
- int ret;
- ret = INTERNAL_VSYSCALL (clock_gettime, err, 2,
- (cond->__data.__nwaiters
- & ((1 << COND_NWAITERS_SHIFT) - 1)),
- &rt);
+ (void) INTERNAL_VSYSCALL (clock_gettime, err, 2,
+ (cond->__data.__nwaiters
+ & ((1 << COND_NWAITERS_SHIFT) - 1)),
+ &rt);
/* Convert the absolute timeout value to a relative timeout. */
rt.tv_sec = abstime->tv_sec - rt.tv_sec;
rt.tv_nsec = abstime->tv_nsec - rt.tv_nsec;