Skip to content

Commit 3d5abd3

Browse files
committed
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.
1 parent dccadcb commit 3d5abd3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

rayaop.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,6 @@ PHP_MINIT_FUNCTION(rayaop) {
388388
php_error_docref(NULL, E_ERROR, "Failed to allocate mutex for RayAOP");
389389
return FAILURE;
390390
}
391-
if (!rayaop_mutex) {
392-
php_error_docref(NULL, E_ERROR, "Failed to allocate mutex for RayAOP");
393-
return FAILURE;
394-
}
395391
#endif
396392

397393
zend_class_entry ce;

0 commit comments

Comments
 (0)