]> granicus.if.org Git - php/commitdiff
Useless check (part of #71753)
authorXinchen Hui <laruence@gmail.com>
Thu, 10 Mar 2016 07:43:22 +0000 (15:43 +0800)
committerXinchen Hui <laruence@gmail.com>
Thu, 10 Mar 2016 07:43:22 +0000 (15:43 +0800)
ext/spl/spl_dllist.c

index 4eed914aeb4be24529226f2a7ff4c87daadabc5c..aa0c6c384071a52daf815d230424bb9e97577e5b 100644 (file)
@@ -156,7 +156,7 @@ static void spl_ptr_llist_destroy(spl_ptr_llist *llist) /* {{{ */
 
        while (current) {
                next = current->next;
-               if(current && dtor) {
+               if (dtor) {
                        dtor(current);
                }
                SPL_LLIST_DELREF(current);