Commit 5452adbe authored by Thiemo Seufer's avatar Thiemo Seufer
Browse files

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
parent f58c7b35
Loading
Loading
Loading
Loading
+20 −25
Original line number Diff line number Diff line
@@ -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);