From 38974860dbeae04c47bdd9b245eb3cb355797ecb Mon Sep 17 00:00:00 2001 From: Mladen Turk Date: Tue, 24 Aug 2004 13:50:43 +0000 Subject: [PATCH] Remove uneeded access_status variable. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104792 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/proxy_balancer.c | 35 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/modules/proxy/proxy_balancer.c b/modules/proxy/proxy_balancer.c index ba197ab36d4..309ddc7713e 100644 --- a/modules/proxy/proxy_balancer.c +++ b/modules/proxy/proxy_balancer.c @@ -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) -- 2.47.3