[Spice-devel] [PATCH 11/15] dc: convert break to continue

Frediano Ziglio fziglio at redhat.com
Mon May 16 16:40:36 UTC 2016


Both jump to check worker_ring_item (internal or external loops)

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/display-channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/display-channel.c b/server/display-channel.c
index 58c1fd6..40e6608 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -517,7 +517,7 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
                         dpi_ring_item = ring_next(&other_drawable->pipes, dpi_ring_item);
                         worker_ring_item = ring_next(&RED_CHANNEL(display)->clients,
                                                      worker_ring_item);
-                        break;
+                        continue;
                     }
                     dcc_prepend_drawable(dcc, drawable);
                     worker_ring_item = ring_next(&RED_CHANNEL(display)->clients,
-- 
2.7.4



More information about the Spice-devel mailing list