From: Joseph Myers Date: Wed, 21 Nov 2012 20:00:11 +0000 (+0000) Subject: Remove unused variable from pthread_cond_timedwait.c. X-Git-Tag: upstream/2.30~9885 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fac9916c962ffa03350322d616c44f07467850eb;p=external%2Fglibc.git Remove unused variable from pthread_cond_timedwait.c. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 48aa6da..745accd 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,9 @@ +2012-11-21 Joseph Myers + + * pthread_cond_timedwait.c (__pthread_cond_timedwait) + [__NR_clock_gettime]: Cast result of INTERNAL_VSYSCALL to void + instead of storing in otherwise-unused variable. + 2012-11-14 Marcus Shawcroft * Makefile (CFLAGS-open.c, CFLAGS-open64.c, CFLAGS-pause.c) diff --git a/nptl/pthread_cond_timedwait.c b/nptl/pthread_cond_timedwait.c index 2fcbc57..ef33b96 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;