]> granicus.if.org Git - handbrake/commitdiff
libhb: Remove redundant check in common.c
authormidzer <midzer@gmail.com>
Wed, 19 Oct 2016 19:19:49 +0000 (21:19 +0200)
committerBradley Sepos <bradley@bradleysepos.com>
Wed, 14 Dec 2016 16:29:32 +0000 (11:29 -0500)
Closes #358.

libhb/common.c

index a2fdc4b32417503c811ae6361f263c6f8093d146..c85bd21dffc0fd234d6102497d522a2021024514 100644 (file)
@@ -2889,7 +2889,7 @@ hb_buffer_t* hb_buffer_list_rem_tail(hb_buffer_list_t *list)
     else if (list->tail != NULL)
     {
         hb_buffer_t *end = list->head;
-        while (end != NULL && end->next != list->tail)
+        while (end->next != list->tail)
         {
             end = end->next;
         }