Skip to content

Commit

Permalink
vdi: remove double conversion
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bonzini authored and Michael Tokarev committed Jun 10, 2014
1 parent d1180c1 commit 6998b6c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion block/vdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6998b6c

Please sign in to comment.