Remove dead-code (else-block) from block-qcow.c, by Marc Bevand.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4673 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
ths 2008-06-05 22:00:45 +00:00
parent f58c7b3545
commit 5452adbee0

View File

@ -339,7 +339,6 @@ static uint64_t get_cluster_offset(BlockDriverState *bs,
return -1;
} else {
cluster_offset = bdrv_getlength(s->hd);
if (allocate == 1) {
/* round to cluster size */
cluster_offset = (cluster_offset + s->cluster_size - 1) &
~(s->cluster_size - 1);
@ -363,10 +362,6 @@ static uint64_t get_cluster_offset(BlockDriverState *bs,
}
}
}
} else {
cluster_offset |= QCOW_OFLAG_COMPRESSED |
(uint64_t)compressed_size << (63 - s->cluster_bits);
}
}
/* update L2 table */
tmp = cpu_to_be64(cluster_offset);