]> Git Repo - qemu.git/blobdiff - block/vhdx-log.c
mirror: Speed up bitmap initial scanning
[qemu.git] / block / vhdx-log.c
index eb5c7a097ba5975e25b5236934440e0cbc49cfbc..47fec63c616cc8431c12cb7313bb6efc50c3a8be 100644 (file)
@@ -19,6 +19,7 @@
  */
 #include "qemu-common.h"
 #include "block/block_int.h"
+#include "qemu/error-report.h"
 #include "qemu/module.h"
 #include "block/vhdx.h"
 
@@ -923,7 +924,7 @@ static int vhdx_log_write(BlockDriverState *bs, BDRVVHDXState *s,
     buffer = qemu_blockalign(bs, total_length);
     memcpy(buffer, &new_hdr, sizeof(new_hdr));
 
-    new_desc = (VHDXLogDescriptor *) (buffer + sizeof(new_hdr));
+    new_desc = buffer + sizeof(new_hdr);
     data_sector = buffer + (desc_sectors * VHDX_LOG_SECTOR_SIZE);
     data_tmp = data;
 
This page took 0.023657 seconds and 4 git commands to generate.