]> granicus.if.org Git - curl/commitdiff
http2: remove dead code
authorDaniel Stenberg <daniel@haxx.se>
Mon, 24 Aug 2015 09:31:45 +0000 (11:31 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 24 Aug 2015 09:31:45 +0000 (11:31 +0200)
Leftovers from when we removed the private socket hash.

Coverity CID 1317365, "Logically dead code"

lib/http2.c

index 197d05c0515f54a4e74198eab797a0eef2ae3910..6228c112723cb1f39db5f44c1736afc4a67b24e0 100644 (file)
@@ -904,11 +904,6 @@ CURLcode Curl_http2_init(struct connectdata *conn)
       failf(conn->data, "Couldn't initialize nghttp2!");
       return CURLE_OUT_OF_MEMORY; /* most likely at least */
     }
-
-    if(rc) {
-      failf(conn->data, "Couldn't init stream hash!");
-      return CURLE_OUT_OF_MEMORY; /* most likely at least */
-    }
   }
   return CURLE_OK;
 }