From 6998b6c11b4e8ca5e3c3e6bdbdf07a4f747d5d37 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 6 Jun 2014 16:06:52 +0200 Subject: vdi: remove double conversion This should be a problem when running on big-endian machines. Signed-off-by: Paolo Bonzini Reviewed-by: Benoit Canet Reviewed-by: Stefan Weil Signed-off-by: Michael Tokarev --- block/vdi.c | 1 - 1 file changed, 1 deletion(-) (limited to 'block') diff --git a/block/vdi.c b/block/vdi.c index 27737af555..1b2be1af7b 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); -- cgit v1.2.3