You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2020/06/01 09:10:11 UTC

svn commit: r1878342 - /apr/apr/trunk/locks/unix/proc_mutex.c

Author: jorton
Date: Mon Jun  1 09:10:11 2020
New Revision: 1878342

URL: http://svn.apache.org/viewvc?rev=1878342&view=rev
Log:
* locks/unix/proc_mutex.c (apr_proc_mutex_defname): Fix clang warning,
  remove unused local variable.

Modified:
    apr/apr/trunk/locks/unix/proc_mutex.c

Modified: apr/apr/trunk/locks/unix/proc_mutex.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/locks/unix/proc_mutex.c?rev=1878342&r1=1878341&r2=1878342&view=diff
==============================================================================
--- apr/apr/trunk/locks/unix/proc_mutex.c (original)
+++ apr/apr/trunk/locks/unix/proc_mutex.c Mon Jun  1 09:10:11 2020
@@ -1512,11 +1512,10 @@ static apr_status_t proc_mutex_choose_me
 
 APR_DECLARE(const char *) apr_proc_mutex_defname(void)
 {
-    apr_status_t rv;
     apr_proc_mutex_t mutex;
 
-    if ((rv = proc_mutex_choose_method(&mutex, APR_LOCK_DEFAULT,
-                                       NULL)) != APR_SUCCESS) {
+    if (proc_mutex_choose_method(&mutex, APR_LOCK_DEFAULT,
+                                 NULL) != APR_SUCCESS) {
         return "unknown";
     }