提交 6998b6c1 编写于 作者: P Paolo Bonzini 提交者: Michael Tokarev

vdi: remove double conversion

This should be a problem when running on big-endian machines.
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
Reviewed-by: NBenoit Canet <benoit@irqsave.net>
Reviewed-by: NStefan Weil <sw@weilnetz.de>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 d1180c1e
...@@ -239,7 +239,6 @@ static void vdi_header_to_le(VdiHeader *header) ...@@ -239,7 +239,6 @@ static void vdi_header_to_le(VdiHeader *header)
cpu_to_le32s(&header->block_extra); cpu_to_le32s(&header->block_extra);
cpu_to_le32s(&header->blocks_in_image); cpu_to_le32s(&header->blocks_in_image);
cpu_to_le32s(&header->blocks_allocated); cpu_to_le32s(&header->blocks_allocated);
cpu_to_le32s(&header->blocks_allocated);
uuid_convert(header->uuid_image); uuid_convert(header->uuid_image);
uuid_convert(header->uuid_last_snap); uuid_convert(header->uuid_last_snap);
uuid_convert(header->uuid_link); uuid_convert(header->uuid_link);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册