# HG changeset patch # User Igor Sysoev # Date 1186484169 0 # Node ID aabbf66b61eae0083f175146f728c27fdd0aa1a1 # Parent fdea12ffb24a2d0d6007159bf07a1903a2639b59 omit unnecessary conditions diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c --- a/src/http/modules/ngx_http_dav_module.c +++ b/src/http/modules/ngx_http_dav_module.c @@ -355,7 +355,7 @@ ngx_http_dav_delete_handler(ngx_http_req rc = ngx_http_discard_request_body(r); - if (rc != NGX_OK && rc != NGX_AGAIN) { + if (rc != NGX_OK) { return rc; } @@ -471,7 +471,7 @@ ngx_http_dav_mkcol_handler(ngx_http_requ rc = ngx_http_discard_request_body(r); - if (rc != NGX_OK && rc != NGX_AGAIN) { + if (rc != NGX_OK) { return rc; } @@ -613,7 +613,7 @@ overwrite_done: rc = ngx_http_discard_request_body(r); - if (rc != NGX_OK && rc != NGX_AGAIN) { + if (rc != NGX_OK) { return rc; } diff --git a/src/http/modules/ngx_http_empty_gif_module.c b/src/http/modules/ngx_http_empty_gif_module.c --- a/src/http/modules/ngx_http_empty_gif_module.c +++ b/src/http/modules/ngx_http_empty_gif_module.c @@ -118,7 +118,7 @@ ngx_http_empty_gif_handler(ngx_http_requ rc = ngx_http_discard_request_body(r); - if (rc != NGX_OK && rc != NGX_AGAIN) { + if (rc != NGX_OK) { return rc; } diff --git a/src/http/modules/ngx_http_flv_module.c b/src/http/modules/ngx_http_flv_module.c --- a/src/http/modules/ngx_http_flv_module.c +++ b/src/http/modules/ngx_http_flv_module.c @@ -91,7 +91,7 @@ ngx_http_flv_handler(ngx_http_request_t rc = ngx_http_discard_request_body(r); - if (rc != NGX_OK && rc != NGX_AGAIN) { + if (rc != NGX_OK) { return rc; } diff --git a/src/http/modules/ngx_http_memcached_module.c b/src/http/modules/ngx_http_memcached_module.c --- a/src/http/modules/ngx_http_memcached_module.c +++ b/src/http/modules/ngx_http_memcached_module.c @@ -169,7 +169,7 @@ ngx_http_memcached_handler(ngx_http_requ rc = ngx_http_discard_request_body(r); - if (rc != NGX_OK && rc != NGX_AGAIN) { + if (rc != NGX_OK) { return rc; } diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c --- a/src/http/modules/ngx_http_static_module.c +++ b/src/http/modules/ngx_http_static_module.c @@ -102,7 +102,7 @@ ngx_http_static_handler(ngx_http_request rc = ngx_http_discard_request_body(r); - if (rc != NGX_OK && rc != NGX_AGAIN) { + if (rc != NGX_OK) { return rc; } diff --git a/src/http/modules/ngx_http_stub_status_module.c b/src/http/modules/ngx_http_stub_status_module.c --- a/src/http/modules/ngx_http_stub_status_module.c +++ b/src/http/modules/ngx_http_stub_status_module.c @@ -71,7 +71,7 @@ static ngx_int_t ngx_http_status_handler rc = ngx_http_discard_request_body(r); - if (rc != NGX_OK && rc != NGX_AGAIN) { + if (rc != NGX_OK) { return rc; }