summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini2015-05-14 12:35:02 +0200
committerStefan Hajnoczi2015-05-22 10:37:33 +0200
commita53f1a95f9605f300fbafbc8b60b8a8c67e9c4b4 (patch)
treeafe27076736dd4f812701052227080572dabcf4e /include
parentqemu-iotests: Test unaligned sub-block zero write (diff)
downloadqemu-a53f1a95f9605f300fbafbc8b60b8a8c67e9c4b4.tar.gz
qemu-a53f1a95f9605f300fbafbc8b60b8a8c67e9c4b4.tar.xz
qemu-a53f1a95f9605f300fbafbc8b60b8a8c67e9c4b4.zip
block: get_block_status: use "else" when testing the opposite condition
A bit of Boolean algebra (and common sense) tells us that the second "if" here is looking for blocks that are not allocated. This is the opposite of the "if" that sets BDRV_BLOCK_ALLOCATED, and thus it can use an "else". Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Message-id: 1431599702-10431-1-git-send-email-pbonzini@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions