From: Xinchen Hui Date: Thu, 10 Mar 2016 07:43:22 +0000 (+0800) Subject: Useless check (part of #71753) X-Git-Tag: php-7.1.0alpha1~503^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=753bbad5353c7bfc13e0fd7b65f0824b6a41e5a8;p=php Useless check (part of #71753) --- diff --git a/ext/spl/spl_dllist.c b/ext/spl/spl_dllist.c index 4eed914aeb..aa0c6c3840 100644 --- a/ext/spl/spl_dllist.c +++ b/ext/spl/spl_dllist.c @@ -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);