diff options
author | Swapnil Ingle <swapnil.ingle@nutanix.com> | 2020-11-17 05:37:40 -0500 |
---|---|---|
committer | Swapnil Ingle <swapnil.ingle@nutanix.com> | 2020-11-17 11:29:25 -0500 |
commit | 2f207eb3053f8408396c75c378aff236ecb110a3 (patch) | |
tree | a6b537c0d303e6f541446888c577b4e412677650 /lib/dma.h | |
parent | 1d339ffea368f4821055cbac1726bb76d67923da (diff) | |
download | libvfio-user-2f207eb3053f8408396c75c378aff236ecb110a3.zip libvfio-user-2f207eb3053f8408396c75c378aff236ecb110a3.tar.gz libvfio-user-2f207eb3053f8408396c75c378aff236ecb110a3.tar.bz2 |
Fix compiler errors for non-dbg build
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'lib/dma.h')
-rw-r--r-- | lib/dma.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -303,7 +303,9 @@ dma_unmap_addr(dma_controller_t *dma, int r; r = dma_addr_to_sg(dma, dma_addr, len, &sg, 1, PROT_NONE); - assert(r == 1); + if (r != 1) { + assert(false); + } dma_unmap_sg(dma, &sg, &iov, 1); } |