From 4cec87361462d570d6a67888feda41e77e0a9562 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 11 Jan 2006 15:50:47 -0800 Subject: Fix mutex_trylock() copy-and-paste bug (x86, x86-64, generic mutex-dec.h) Noticed by Arjan originally on x86-64, then Ingo on x86, and finally me grepping for it in the generic version. Bad parenthesis nesting. Signed-off-by: Linus Torvalds --- include/asm-generic/mutex-dec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/asm-generic/mutex-dec.h') diff --git a/include/asm-generic/mutex-dec.h b/include/asm-generic/mutex-dec.h index 74b18cda169..40c6d1f8659 100644 --- a/include/asm-generic/mutex-dec.h +++ b/include/asm-generic/mutex-dec.h @@ -97,7 +97,7 @@ __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) * the mutex state would be. */ #ifdef __HAVE_ARCH_CMPXCHG - if (likely(atomic_cmpxchg(count, 1, 0)) == 1) { + if (likely(atomic_cmpxchg(count, 1, 0) == 1)) { smp_mb(); return 1; } -- cgit v1.2.3