diff options
author | 2019-02-27 10:26:24 +0100 | |
---|---|---|
committer | 2019-03-08 12:26:45 +0100 | |
commit | 77e023ff79222191e8cc3d377504da8f19926837 (patch) | |
tree | cb20fe92b89dd4dd24f840ddaa41c8026de3685d /hw/usb/dev-hub.c | |
parent | qcow2: Don't assume 0 is an invalid cluster offset (diff) | |
download | qemu-77e023ff79222191e8cc3d377504da8f19926837.tar.xz qemu-77e023ff79222191e8cc3d377504da8f19926837.zip |
qcow2: Return 0/-errno in qcow2_alloc_compressed_cluster_offset()
qcow2_alloc_compressed_cluster_offset() used to return the cluster
offset for success and 0 for error. This doesn't only conflict with 0 as
a valid host offset, but also loses the error code.
Similar to the change made to qcow2_alloc_cluster_offset() for
uncompressed clusters in commit 148da7ea9d6, make the function return
0/-errno and return the allocated cluster offset in a by-reference
parameter.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/usb/dev-hub.c')
0 files changed, 0 insertions, 0 deletions