[Spice-devel] [PATCH 04/15] dc: worker_ring_item is never null here

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


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

diff --git a/server/display-channel.c b/server/display-channel.c
index fc232fb..31ec5d0 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -529,10 +529,8 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
                 if (dpi_ring_item) {
                     dpi_ring_item = ring_next(&other_drawable->pipes, dpi_ring_item);
                 }
-                if (worker_ring_item) {
-                    worker_ring_item = ring_next(&RED_CHANNEL(display)->clients,
-                                                 worker_ring_item);
-                }
+                worker_ring_item = ring_next(&RED_CHANNEL(display)->clients,
+                                             worker_ring_item);
             }
 out_loop:
             /* not sending other_drawable where possible */
-- 
2.7.4



More information about the Spice-devel mailing list