usercopy: Add parentheses around assignment in test_copy_struct_from_user
[linux-2.6-microblaze.git] / lib / test_user_copy.c
index 950ee88..e365ace 100644 (file)
@@ -93,11 +93,11 @@ static int test_copy_struct_from_user(char *kmem, char __user *umem,
        size_t ksize, usize;
 
        umem_src = kmalloc(size, GFP_KERNEL);
-       if (ret |= test(umem_src == NULL, "kmalloc failed"))
+       if ((ret |= test(umem_src == NULL, "kmalloc failed")))
                goto out_free;
 
        expected = kmalloc(size, GFP_KERNEL);
-       if (ret |= test(expected == NULL, "kmalloc failed"))
+       if ((ret |= test(expected == NULL, "kmalloc failed")))
                goto out_free;
 
        /* Fill umem with a fixed byte pattern. */