Signed-off-by: Asias He <asias.he...@gmail.com>
---
 tools/kvm/disk/qcow.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/tools/kvm/disk/qcow.c b/tools/kvm/disk/qcow.c
index b3221c4..ee2992e 100644
--- a/tools/kvm/disk/qcow.c
+++ b/tools/kvm/disk/qcow.c
@@ -259,10 +259,10 @@ static int qcow_decompress_buffer(u8 *out_buf, int 
out_buf_size,
 
        memset(strm, 0, sizeof(*strm));
 
-       strm->next_in = (u8 *)buf;
-       strm->avail_in = buf_size;
-       strm->next_out = out_buf;
-       strm->avail_out = out_buf_size;
+       strm->next_in   = (u8 *)buf;
+       strm->avail_in  = buf_size;
+       strm->next_out  = out_buf;
+       strm->avail_out = out_buf_size;
 
        ret = inflateInit2(strm, -12);
        if (ret != Z_OK)
@@ -330,9 +330,9 @@ static ssize_t qcow1_read_cluster(struct qcow *q, u64 
offset,
 
        clust_start = be64_to_cpu(l2t->table[l2_idx]);
        if (clust_start & QCOW1_OFLAG_COMPRESSED) {
-               coffset = clust_start & q->cluster_offset_mask;
-               csize = clust_start >> (63 - q->header->cluster_bits);
-               csize &= (q->cluster_size - 1);
+               coffset = clust_start & q->cluster_offset_mask;
+               csize   = clust_start >> (63 - q->header->cluster_bits);
+               csize   &= (q->cluster_size - 1);
 
                if (pread_in_full(q->fd, q->cluster_data, csize,
                                  coffset) < 0)
@@ -1223,7 +1223,7 @@ static int qcow_read_l1_table(struct qcow *q)
        struct qcow_header *header = q->header;
        struct qcow_l1_table *table = &q->table;
 
-       table->table_size       = header->l1_size;
+       table->table_size = header->l1_size;
 
        table->l1_table = calloc(table->table_size, sizeof(u64));
        if (!table->l1_table)
-- 
1.7.10.2

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to