aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2022-05-27 12:54:26 +0100
committerGitHub <noreply@github.com>2022-05-27 12:54:26 +0100
commit065c33e7dc7bbd1d5964a5a3af173a69ad3ee931 (patch)
treed629dc61d6ac7f966ab3983951121f307999f9c5 /test
parent54b7ef99497b2a4aa703a33342b54c76a709b0fe (diff)
downloadlibvfio-user-065c33e7dc7bbd1d5964a5a3af173a69ad3ee931.zip
libvfio-user-065c33e7dc7bbd1d5964a5a3af173a69ad3ee931.tar.gz
libvfio-user-065c33e7dc7bbd1d5964a5a3af173a69ad3ee931.tar.bz2
remove refcnt from region (#673)
The reference count is unused, and not atomically handled, remove it. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test')
-rw-r--r--test/unit-tests.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/unit-tests.c b/test/unit-tests.c
index 6b16fe6..97b06f1 100644
--- a/test/unit-tests.c
+++ b/test/unit-tests.c
@@ -267,7 +267,6 @@ test_dma_controller_add_region_no_fd(void **state UNUSED)
assert_int_equal(0x1000, r->info.page_size);
assert_int_equal(offset, r->offset);
assert_int_equal(fd, r->fd);
- assert_int_equal(0, r->refcnt);
assert_int_equal(PROT_NONE, r->info.prot);
}