]> sourceware.org Git - glibc.git/commitdiff
Remove unused variable from pthread_cond_timedwait.c.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 21 Nov 2012 20:00:11 +0000 (20:00 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 21 Nov 2012 20:00:11 +0000 (20:00 +0000)
nptl/ChangeLog
nptl/pthread_cond_timedwait.c

index 48aa6da1adc0a97803403fd609f12de6ceeac0d2..745accdaf7a2fd4d1ddd326de468f2b54d8580a4 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-21  Joseph Myers  <joseph@codesourcery.com>
+
+       * 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  <marcus.shawcroft@linaro.org>
 
        * Makefile (CFLAGS-open.c, CFLAGS-open64.c, CFLAGS-pause.c)
index 2fcbc57c2adcedf60a7174be60072d15d0558509..ef33b966b82b702fdae099342ae5f8f9586e911f 100644 (file)
@@ -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;
This page took 0.05163 seconds and 5 git commands to generate.