qcow1: Fix compressed images (Kevin Wolf)
commit7f48fa1f05b0db5583fd191aee60f7b4fb7ffda9
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 8 Jan 2009 19:29:03 +0000 (8 19:29 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 8 Jan 2009 19:29:03 +0000 (8 19:29 +0000)
tree88bd20a42390ed17e405eab120d61f1a4d818b6b
parent062e55272e21d45bd8056fb5d8745ec8f22961ff
qcow1: Fix compressed images (Kevin Wolf)

Revert r4673, the removed dead code wasn't dead in fact.

Additionally, change the misleading else which tricks the reader into
believing that allocate is a boolean to else if (allocate == 2).

Signed-off-by: Kevin Wolf <kwolf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6244 c046a42c-6fe2-441c-8c8c-71466251a162
block-qcow.c