[Spice-devel] [PATCH 08/15] dc: if dpi is not NULL even dpi_ring_item is not NULL
Frediano Ziglio
fziglio at redhat.com
Mon May 16 16:40:33 UTC 2016
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/display-channel.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index d618ba5..cb60637 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -517,9 +517,7 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
common.base.channel_link);
dpi = SPICE_CONTAINEROF(dpi_ring_item, RedDrawablePipeItem, base);
if (dpi && dcc == dpi->dcc) {
- if (dpi_ring_item) {
- dpi_ring_item = ring_next(&other_drawable->pipes, dpi_ring_item);
- }
+ dpi_ring_item = ring_next(&other_drawable->pipes, dpi_ring_item);
worker_ring_item = ring_next(&RED_CHANNEL(display)->clients,
worker_ring_item);
break;
--
2.7.4
More information about the Spice-devel
mailing list