Skip to content

Commit

Permalink
Remove redundant mutex allocation check
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
koriym committed Dec 9, 2024
1 parent dccadcb commit 3d5abd3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions rayaop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3d5abd3

Please sign in to comment.