From 753bbad5353c7bfc13e0fd7b65f0824b6a41e5a8 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Thu, 10 Mar 2016 15:43:22 +0800 Subject: [PATCH] Useless check (part of #71753) --- ext/spl/spl_dllist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1