From: Paolo Bonzini <pbonz...@redhat.com>

This should be a problem when running on big-endian machines.

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Reviewed-by: Benoit Canet <ben...@irqsave.net>
Reviewed-by: Stefan Weil <s...@weilnetz.de>
Signed-off-by: Michael Tokarev <m...@tls.msk.ru>
---
 block/vdi.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/block/vdi.c b/block/vdi.c
index 27737af..1b2be1a 100644
--- a/block/vdi.c
+++ b/block/vdi.c
@@ -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);
-- 
1.7.10.4


Reply via email to