lib: Fix atomic64_add_unless test
[firefly-linux-kernel-4.4.55.git] / lib / atomic64_test.c
index 58efdabb3845bebe2dda077702659f672f29eb03..ee8e6de8b41319e128afecc63de9b18bb93e0279 100644 (file)
@@ -104,11 +104,11 @@ static __init int test_atomic64(void)
        BUG_ON(v.counter != r);
 
        INIT(v0);
-       BUG_ON(!atomic64_add_unless(&v, one, v0));
+       BUG_ON(atomic64_add_unless(&v, one, v0));
        BUG_ON(v.counter != r);
 
        INIT(v0);
-       BUG_ON(atomic64_add_unless(&v, one, v1));
+       BUG_ON(!atomic64_add_unless(&v, one, v1));
        r += one;
        BUG_ON(v.counter != r);