ttml: Simplify code

n2 can never be NULL since:
* it's in a "while (n1 && n2)" block
* and it's not modified before

CID #1405868
This commit is contained in:
Edward Hervey 2017-05-26 17:55:44 +02:00 committed by Edward Hervey
parent 304a628de7
commit 417c70805b

View file

@ -1886,7 +1886,7 @@ ttml_join_region_tree_inline_elements (GNode * tree)
n2 = n1->next;
} else {
n1 = n2;
n2 = n2 ? n2->next : NULL;
n2 = n2->next;
}
}
}