From d87724e626e48ff2b380d270325cd9e3e3e01321 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 15 Apr 2014 09:07:40 +0400 Subject: [PATCH] wininet: Remove some dead code (Coverity). --- dlls/wininet/http.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 934af3a0a2a..07b478717fc 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -3289,7 +3289,7 @@ static DWORD HTTP_HttpOpenRequestW(http_session_t *session, { appinfo_t *hIC = session->appInfo; http_request_t *request; - DWORD len, res = ERROR_SUCCESS; + DWORD len; TRACE("-->\n"); @@ -3378,13 +3378,7 @@ static DWORD HTTP_HttpOpenRequestW(http_session_t *session, INTERNET_STATUS_HANDLE_CREATED, &request->hdr.hInternet, sizeof(HINTERNET)); - TRACE("<-- %u (%p)\n", res, request); - - if(res != ERROR_SUCCESS) { - WININET_Release( &request->hdr ); - *ret = NULL; - return res; - } + TRACE("<-- (%p)\n", request); *ret = request->hdr.hInternet; return ERROR_SUCCESS;