mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-31 11:28:31 +00:00
dc: use while again
Convert from for(;;) { if () break; ... } to while
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
0010656ea4
commit
5fbac6c8cb
@ -479,10 +479,7 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
|
||||
dpi_ring_item = ring_get_head(&other_drawable->pipes);
|
||||
/* dpi contains a sublist of dcc's, ordered the same */
|
||||
while (link) {
|
||||
for (;;) {
|
||||
if (!link) {
|
||||
break;
|
||||
}
|
||||
while (link) {
|
||||
dcc = link->data;
|
||||
dpi = SPICE_UPCAST(RedDrawablePipeItem, dpi_ring_item);
|
||||
if (dpi && dcc == dpi->dcc) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user