ttml: Simplify code
authorEdward Hervey <edward@centricular.com>
Fri, 26 May 2017 15:55:44 +0000 (17:55 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 26 May 2017 15:55:44 +0000 (17:55 +0200)
n2 can never be NULL since:
* it's in a "while (n1 && n2)" block
* and it's not modified before

CID #1405868

ext/ttml/ttmlparse.c

index 2759b69..a609b98 100644 (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;
     }
   }
 }