From 3d5abd3941bc0caa5dca275f1b0937839ff1b9b9 Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Mon, 9 Dec 2024 10:37:18 +0900 Subject: [PATCH] Remove redundant mutex allocation check The removed code contained a duplicate check for the mutex allocation, which was unnecessary as the error handling for this condition already exists. This cleanup helps streamline the code and avoid redundant error messages. --- rayaop.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rayaop.c b/rayaop.c index fc60310..6ea81b6 100644 --- a/rayaop.c +++ b/rayaop.c @@ -388,10 +388,6 @@ PHP_MINIT_FUNCTION(rayaop) { php_error_docref(NULL, E_ERROR, "Failed to allocate mutex for RayAOP"); return FAILURE; } - if (!rayaop_mutex) { - php_error_docref(NULL, E_ERROR, "Failed to allocate mutex for RayAOP"); - return FAILURE; - } #endif zend_class_entry ce;