]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Curl_http_readwrite_headers: minor code simplification
authorDaniel Stenberg <daniel@haxx.se>
Tue, 12 May 2015 09:47:33 +0000 (11:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 May 2015 07:33:47 +0000 (09:33 +0200)
lib/http.c

index 4966f13b12533155783e943d567e4e69bf4e16a6..5469cc067ddec70b5e05ee353df42220cdbd1f3a 100644 (file)
@@ -3381,18 +3381,15 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
         }
         else if(conn->httpversion >= 11 &&
                 !conn->bits.close) {
-          struct connectbundle *cb_ptr;
-
           /* If HTTP version is >= 1.1 and connection is persistent
              server supports pipelining. */
           DEBUGF(infof(data,
                        "HTTP 1.1 or later with persistent connection, "
                        "pipelining supported\n"));
           /* Activate pipelining if needed */
-          cb_ptr = conn->bundle;
-          if(cb_ptr) {
+          if(conn->bundle) {
             if(!Curl_pipeline_site_blacklisted(data, conn))
-              cb_ptr->multiuse = BUNDLE_PIPELINING;
+              conn->bundle->multiuse = BUNDLE_PIPELINING;
           }
         }