]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi_ev: remove redundant check for data
authorDaniel Stenberg <daniel@haxx.se>
Tue, 29 Apr 2025 12:03:10 +0000 (14:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 29 Apr 2025 12:22:31 +0000 (14:22 +0200)
Pointed out by CodeSonar

Closes #17226

lib/multi_ev.c

index b1900cb14faca2741b25caa3bed29c689412f795..ca634b2a9e5430f97302ea2aa99711d65776f25a 100644 (file)
@@ -478,8 +478,7 @@ mev_get_last_pollset(struct Curl_easy *data,
   if(data) {
     if(conn)
       return Curl_conn_meta_get(conn, CURL_META_MEV_POLLSET);
-    else if(data)
-      return Curl_meta_get(data, CURL_META_MEV_POLLSET);
+    return Curl_meta_get(data, CURL_META_MEV_POLLSET);
   }
   return NULL;
 }