[PATCH 02/15] dc: split if

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 server/display-channel.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/server/display-channel.c b/server/display-channel.c
index 171dfce..f19d3db 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -513,7 +513,10 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
                                         common.base.channel_link);
                 dpi = SPICE_CONTAINEROF(dpi_ring_item, RedDrawablePipeItem, base);
                 for (;;) {
-                    if (!worker_ring_item || (dpi && dcc == dpi->dcc)) {
+                    if (!worker_ring_item) {
+                        break;
+                    }
+                    if (dpi && dcc == dpi->dcc) {
                         break;
                     }
                     dcc_prepend_drawable(dcc, drawable);
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]