diff options
Diffstat (limited to 'lib/atomic64_test.c')
-rw-r--r-- | lib/atomic64_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/atomic64_test.c b/lib/atomic64_test.c index 58efdabb3845..ee8e6de8b413 100644 --- a/lib/atomic64_test.c +++ b/lib/atomic64_test.c | |||
@@ -104,11 +104,11 @@ static __init int test_atomic64(void) | |||
104 | BUG_ON(v.counter != r); | 104 | BUG_ON(v.counter != r); |
105 | 105 | ||
106 | INIT(v0); | 106 | INIT(v0); |
107 | BUG_ON(!atomic64_add_unless(&v, one, v0)); | 107 | BUG_ON(atomic64_add_unless(&v, one, v0)); |
108 | BUG_ON(v.counter != r); | 108 | BUG_ON(v.counter != r); |
109 | 109 | ||
110 | INIT(v0); | 110 | INIT(v0); |
111 | BUG_ON(atomic64_add_unless(&v, one, v1)); | 111 | BUG_ON(!atomic64_add_unless(&v, one, v1)); |
112 | r += one; | 112 | r += one; |
113 | BUG_ON(v.counter != r); | 113 | BUG_ON(v.counter != r); |
114 | 114 | ||