vmdk: Clean up descriptor file reading
commit73b7bcad439e0edaced05049897090cc10d84b5b
authorFam Zheng <famz@redhat.com>
Wed, 3 Dec 2014 23:28:31 +0000 (4 07:28 +0800)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 Dec 2014 09:31:21 +0000 (10 10:31 +0100)
treeeca11a8b01734c6c4cc9a9ad6e804ec9261f16a0
parent8a3e0bc370de9274170b82f48b0393204c3fb43b
vmdk: Clean up descriptor file reading

Zeroing a buffer that will be filled right after is not necessary, and
allocating a power of two + 1 is naughty.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Don Koch <dkoch@verizon.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1417649314-13704-4-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c