diff options
-rw-r--r-- | libpthread/linuxthreads/sysdeps/or1k/pt-machine.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/sysdeps/or1k/pt-machine.h b/libpthread/linuxthreads/sysdeps/or1k/pt-machine.h index 51521a2b5..e8d7139b0 100644 --- a/libpthread/linuxthreads/sysdeps/or1k/pt-machine.h +++ b/libpthread/linuxthreads/sysdeps/or1k/pt-machine.h @@ -34,10 +34,9 @@ PT_EI long int testandset(int*); PT_EI long int testandset (int *spinlock) { - int err; int oldvalue = 1; - err = INLINE_SYSCALL(or1k_atomic, 3, OR1K_ATOMIC_XCHG, spinlock, &oldvalue); + INLINE_SYSCALL(or1k_atomic, 3, OR1K_ATOMIC_XCHG, spinlock, &oldvalue); return (oldvalue); } |