[sheepdog] [PATCH 1/4] http: simplify http_init_request

Liu Yuan namei.unix at gmail.com
Thu Nov 14 10:03:51 CET 2013


Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 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




More information about the sheepdog mailing list