]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi_ev: remove redundant check from mev_get_last_pollset
authorDaniel Stenberg <daniel@haxx.se>
Tue, 1 Apr 2025 08:16:04 +0000 (10:16 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 1 Apr 2025 12:28:18 +0000 (14:28 +0200)
Pointed out by CodeSonar

Closes #16894

lib/multi_ev.c

index e83833272766a90be95127720d99a27e2d688fb2..e62732a731ae5c9bace3865431620059dc5b66ca 100644 (file)
@@ -449,8 +449,7 @@ mev_get_last_pollset(struct Curl_multi *multi,
     if(conn)
       return Curl_hash_offt_get(&multi->ev.conn_pollsets,
                                 conn->connection_id);
-    else if(data)
-      return Curl_hash_offt_get(&multi->ev.xfer_pollsets, data->mid);
+    return Curl_hash_offt_get(&multi->ev.xfer_pollsets, data->mid);
   }
   return NULL;
 }