Signed-off-by: Liu Yuan <[email protected]>
---
 sheep/http/http.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sheep/http/http.c b/sheep/http/http.c
index 1057a46..aaaec18 100644
--- a/sheep/http/http.c
+++ b/sheep/http/http.c
@@ -172,15 +172,11 @@ static int request_init_operation(struct http_request 
*req)
 static int http_init_request(struct http_request *req)
 {
        char *p;
-       int ret;
 
        for (int i = 0; (p = req->fcgx.envp[i]); ++i)
                sd_debug("%s", p);
 
-       ret = request_init_operation(req);
-       if (ret != OK)
-               return ret;
-       return OK;
+       return request_init_operation(req);
 }
 
 /* This function does nothing if we have already printed a status code. */
-- 
1.7.9.5

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to