]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
easy: remove dead code
authorDaniel Stenberg <daniel@haxx.se>
Mon, 20 Jun 2022 07:00:12 +0000 (09:00 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Jun 2022 08:44:28 +0000 (10:44 +0200)
Follow-up from 5912da253b64d

Detected by Coverity (CID 1506519)

Closes #9029

lib/easy.c

index aa642015fed45060bfa118c5f9563332ac315b83..704a59df624441dbec3d402bd756cc09d35a1e88 100644 (file)
@@ -575,14 +575,16 @@ static CURLcode wait_or_timeout(struct Curl_multi *multi, struct events *ev)
 
     ev->msbump = FALSE; /* reset here */
 
-    if(0 == pollrc) {
+    if(!pollrc) {
       /* timeout! */
       ev->ms = 0;
       /* fprintf(stderr, "call curl_multi_socket_action(TIMEOUT)\n"); */
       mcode = curl_multi_socket_action(multi, CURL_SOCKET_TIMEOUT, 0,
                                        &ev->running_handles);
     }
-    else if(pollrc > 0) {
+    else {
+      /* here pollrc is > 0 */
+
       /* loop over the monitored sockets to see which ones had activity */
       for(i = 0; i< numfds; i++) {
         if(fds[i].revents) {
@@ -608,8 +610,6 @@ static CURLcode wait_or_timeout(struct Curl_multi *multi, struct events *ev)
         }
       }
     }
-    else
-      return CURLE_RECV_ERROR;
 
     if(mcode)
       return CURLE_URL_MALFORMAT;