[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 3/3] qxl_unpack_chunks: codestyle fixups
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH v2 3/3] qxl_unpack_chunks: codestyle fixups |
Date: |
Mon, 28 Aug 2017 14:35:01 +0200 |
---
hw/display/qxl-render.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/hw/display/qxl-render.c b/hw/display/qxl-render.c
index b2c98f90c0..90e0865618 100644
--- a/hw/display/qxl-render.c
+++ b/hw/display/qxl-render.c
@@ -215,14 +215,17 @@ static void qxl_unpack_chunks(void *dest, size_t size,
PCIQXLDevice *qxl,
bytes = MIN(size - offset, chunk->data_size);
memcpy(dest + offset, chunk->data, bytes);
offset += bytes;
- if (offset == size)
+ if (offset == size) {
return;
+ }
chunk = qxl_phys2virt(qxl, chunk->next_chunk, group_id);
- if (!chunk)
+ if (!chunk) {
return;
+ }
max_chunks--;
- if (max_chunks == 0)
+ if (max_chunks == 0) {
return;
+ }
}
}
--
2.9.3