diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 18:50:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 18:50:47 -0500 |
commit | 4cec87361462d570d6a67888feda41e77e0a9562 (patch) | |
tree | 1113096b2aa214f456cfecbbd5974e7efe8f6b27 /include/asm-x86_64 | |
parent | 7e4e574c391cdeef516411eb698ac6955f01d673 (diff) |
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-x86_64')
-rw-r--r-- | include/asm-x86_64/mutex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86_64/mutex.h b/include/asm-x86_64/mutex.h index 818abfd262d1..11fbee2bd6c0 100644 --- a/include/asm-x86_64/mutex.h +++ b/include/asm-x86_64/mutex.h | |||
@@ -104,7 +104,7 @@ do { \ | |||
104 | static inline int | 104 | static inline int |
105 | __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) | 105 | __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) |
106 | { | 106 | { |
107 | if (likely(atomic_cmpxchg(count, 1, 0)) == 1) | 107 | if (likely(atomic_cmpxchg(count, 1, 0) == 1)) |
108 | return 1; | 108 | return 1; |
109 | else | 109 | else |
110 | return 0; | 110 | return 0; |