From: Xinchen Hui Date: Fri, 3 Oct 2014 10:35:05 +0000 (+0800) Subject: Remove useless condition X-Git-Tag: PRE_NATIVE_TLS_MERGE~158^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54bad8bf57ff18659da78d75ba5f33c98b6441cf;p=php Remove useless condition --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index c44456d7ae..517cbf530d 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1217,14 +1217,13 @@ static zend_always_inline void zend_fetch_dimension_address_read(zval *result, z } else { retval = Z_OBJ_HT_P(container)->read_dimension(container, dim, type, result TSRMLS_CC); - if (result) { - if (retval) { - if (result != retval) { - ZVAL_COPY(result, retval); - } - } else { - ZVAL_NULL(result); + ZEND_ASSERT(result != NULL); + if (retval) { + if (result != retval) { + ZVAL_COPY(result, retval); } + } else { + ZVAL_NULL(result); } } } else {