]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_slotmem_shm: follow up to r1831869: fix dead else if condition.
authorYann Ylavic <ylavic@apache.org>
Tue, 29 May 2018 20:22:44 +0000 (20:22 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 29 May 2018 20:22:44 +0000 (20:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1832479 13f79535-47bb-0310-9956-ffa450edef68

modules/slotmem/mod_slotmem_shm.c

index 8979a9d6d1c83570b77af2bcedb086d8ab273921..7dffef19fcec333ff75cbfcb7cd0d2006263c0fc 100644 (file)
@@ -240,7 +240,7 @@ static apr_status_t restore_slotmem(sharedslotdesc_t *desc,
                                     rv = APR_SUCCESS;
                                 }
                             }
-                            else if (rv == APR_SUCCESS || rv == APR_EOF) {
+                            else {
                                 rv = APR_INCOMPLETE;
                             }
                         }
@@ -248,7 +248,7 @@ static apr_status_t restore_slotmem(sharedslotdesc_t *desc,
                             rv = APR_EOF;
                         }
                     }
-                    else if (rv == APR_SUCCESS || rv == APR_EOF) {
+                    else {
                         rv = APR_INCOMPLETE;
                     }
                 }
@@ -266,7 +266,7 @@ static apr_status_t restore_slotmem(sharedslotdesc_t *desc,
                     rv = APR_SUCCESS;
                 }
             }
-            else if (rv == APR_SUCCESS || rv == APR_EOF) {
+            else {
                 rv = APR_INCOMPLETE;
             }
             if (rv == APR_INCOMPLETE) {