mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-20 16:17:01 +00:00
dc: reuse code inside loop
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
a7b0162015
commit
85d3af793d
@ -484,10 +484,9 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
|
||||
dpi = SPICE_UPCAST(RedDrawablePipeItem, dpi_ring_item);
|
||||
if (dpi && dcc == dpi->dcc) {
|
||||
dpi_ring_item = ring_next(&other_drawable->pipes, dpi_ring_item);
|
||||
link = link->next;
|
||||
continue;
|
||||
} else {
|
||||
dcc_prepend_drawable(dcc, drawable);
|
||||
}
|
||||
dcc_prepend_drawable(dcc, drawable);
|
||||
link = link->next;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user