aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libvfio-user.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libvfio-user.c b/lib/libvfio-user.c
index 00379a6..e5ba0aa 100644
--- a/lib/libvfio-user.c
+++ b/lib/libvfio-user.c
@@ -396,9 +396,7 @@ dev_get_reginfo(vfu_ctx_t *vfu_ctx, uint32_t index, uint32_t argsz,
*nr_fds = 0;
if (caps_size > 0) {
- if (vfu_reg->mmap_areas != NULL) {
- (*vfio_reg)->flags |= VFIO_REGION_INFO_FLAG_CAPS;
- }
+ (*vfio_reg)->flags |= VFIO_REGION_INFO_FLAG_CAPS;
if (argsz >= (*vfio_reg)->argsz) {
dev_get_caps(vfu_ctx, vfu_reg, is_migr_reg(vfu_ctx, index),
*vfio_reg, fds, nr_fds);