]> git.proxmox.com Git - mirror_qemu.git/blobdiff - nbd/server.c
nbd: Silence Coverity false positive
[mirror_qemu.git] / nbd / server.c
index d145e1a690834dae403fbb43c912627f90db1164..613ed2634ada0e629a4ec087d4591fbdf7d14658 100644 (file)
@@ -2129,8 +2129,8 @@ static void bitmap_to_extents(BdrvDirtyBitmap *bitmap,
     }
 
     if (!full) {
-        /* last non dirty extent */
-        nbd_extent_array_add(es, end - start, 0);
+        /* last non dirty extent, nothing to do if array is now full */
+        (void) nbd_extent_array_add(es, end - start, 0);
     }
 
     bdrv_dirty_bitmap_unlock(bitmap);