]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Remove uneeded access_status variable.
authorMladen Turk <mturk@apache.org>
Tue, 24 Aug 2004 13:50:43 +0000 (13:50 +0000)
committerMladen Turk <mturk@apache.org>
Tue, 24 Aug 2004 13:50:43 +0000 (13:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104792 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_balancer.c

index ba197ab36d428fc4a0f54c8efc305ce743896c76..309ddc7713e8ed51ba78d27ebec136fb96bb09b2 100644 (file)
@@ -351,30 +351,25 @@ static int proxy_balancer_post_request(proxy_worker *worker,
                                        request_rec *r,
                                        proxy_server_conf *conf)
 {
-    int access_status;
-    if (!balancer)
-        access_status = DECLINED;
-    else { 
-        apr_status_t rv;
-        if ((rv = PROXY_BALANCER_LOCK(balancer)) != APR_SUCCESS) {
-            ap_log_error(APLOG_MARK, APLOG_ERR, rv, r->server,
-                         "proxy: BALANCER: lock");
-            return HTTP_INTERNAL_SERVER_ERROR;
-        }
-        /* increase the free channels number */
-        if (worker->cp->nfree)
-            worker->cp->nfree++;
-        /* TODO: calculate the bytes transfered */
+    apr_status_t rv;
+
+    if ((rv = PROXY_BALANCER_LOCK(balancer)) != APR_SUCCESS) {
+        ap_log_error(APLOG_MARK, APLOG_ERR, rv, r->server,
+            "proxy: BALANCER: lock");
+        return HTTP_INTERNAL_SERVER_ERROR;
+    }
+    /* increase the free channels number */
+    if (worker->cp->nfree)
+        worker->cp->nfree++;
+    /* TODO: calculate the bytes transfered */
 
-        /* TODO: update the scoreboard status */
+    /* TODO: update the scoreboard status */
 
-        PROXY_BALANCER_UNLOCK(balancer);        
-        access_status = OK;
-        ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+    PROXY_BALANCER_UNLOCK(balancer);        
+    ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
                  "proxy_balancer_post_request for (%s)", balancer->name);
-    }
 
-    return access_status;
+    return OK;
 } 
 
 static void ap_proxy_balancer_register_hook(apr_pool_t *p)