]> Git Repo - qemu.git/commitdiff
vdi: remove double conversion
authorPaolo Bonzini <[email protected]>
Fri, 6 Jun 2014 14:06:52 +0000 (16:06 +0200)
committerMichael Tokarev <[email protected]>
Tue, 10 Jun 2014 15:39:34 +0000 (19:39 +0400)
This should be a problem when running on big-endian machines.

Signed-off-by: Paolo Bonzini <[email protected]>
Reviewed-by: Benoit Canet <[email protected]>
Reviewed-by: Stefan Weil <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
block/vdi.c

index 27737af555b0d6a298ccea2ea1656df5fa0811af..1b2be1af7bfeedf34aa5c879cac7040384afb5da 100644 (file)
@@ -239,7 +239,6 @@ static void vdi_header_to_le(VdiHeader *header)
     cpu_to_le32s(&header->block_extra);
     cpu_to_le32s(&header->blocks_in_image);
     cpu_to_le32s(&header->blocks_allocated);
-    cpu_to_le32s(&header->blocks_allocated);
     uuid_convert(header->uuid_image);
     uuid_convert(header->uuid_last_snap);
     uuid_convert(header->uuid_link);
This page took 0.027805 seconds and 4 git commands to generate.