summaryrefslogtreecommitdiffstats
path: root/include/asm-i386/mutex.h
diff options
context:
space:
mode:
authorLinus Torvalds2006-01-12 00:50:47 +0100
committerLinus Torvalds2006-01-12 00:50:47 +0100
commit4cec87361462d570d6a67888feda41e77e0a9562 (patch)
tree1113096b2aa214f456cfecbbd5974e7efe8f6b27 /include/asm-i386/mutex.h
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge (diff)
downloadkernel-qcow2-linux-4cec87361462d570d6a67888feda41e77e0a9562.tar.gz
kernel-qcow2-linux-4cec87361462d570d6a67888feda41e77e0a9562.tar.xz
kernel-qcow2-linux-4cec87361462d570d6a67888feda41e77e0a9562.zip
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 <torvalds@osdl.org>
Diffstat (limited to 'include/asm-i386/mutex.h')
-rw-r--r--include/asm-i386/mutex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-i386/mutex.h b/include/asm-i386/mutex.h
index c657d4b09f0a..9b2199e829f3 100644
--- a/include/asm-i386/mutex.h
+++ b/include/asm-i386/mutex.h
@@ -125,7 +125,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))
return 1;
return 0;
#else