]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
rv is never used which makes the whole if useless
authorPhilip M. Gollucci <pgollucci@apache.org>
Fri, 6 Aug 2010 20:07:57 +0000 (20:07 +0000)
committerPhilip M. Gollucci <pgollucci@apache.org>
Fri, 6 Aug 2010 20:07:57 +0000 (20:07 +0000)
Reported by: clang static analyzer

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@983116 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_reqtimeout.c

index 2203b61276f3769f4f408c9abc36221ac43f8789..f08213d336262655663b4df70072a0f7eeec983d 100644 (file)
@@ -190,10 +190,7 @@ static apr_status_t reqtimeout_filter(ap_filter_t *f,
 #endif
 
             rv = ap_get_brigade(f->next, bb, AP_MODE_GETLINE, APR_NONBLOCK_READ, remaining);
-            if (APR_STATUS_IS_EAGAIN(rv)) {
-                rv = APR_SUCCESS;
-            }
-            else if (rv != APR_SUCCESS) {
+            if (rv != APR_SUCCESS) {
                 break;
             }