From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsunT-0004Jn-WD for qemu-devel@nongnu.org; Fri, 06 Jun 2014 10:07:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsunM-0008UM-Gz for qemu-devel@nongnu.org; Fri, 06 Jun 2014 10:07:07 -0400 From: Paolo Bonzini Date: Fri, 6 Jun 2014 16:06:52 +0200 Message-Id: <1402063613-12400-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH] vdi: remove double conversion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org This should be a problem when running on big-endian machines. Signed-off-by: Paolo Bonzini --- It's time to clean up old branch, and I found this nice little patch from May 2012. block/vdi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/vdi.c b/block/vdi.c index 119d3c7..993430e 100644 --- a/block/vdi.c +++ b/block/vdi.c @@ -237,7 +237,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.8.3.1