multi_ev: remove redundant check from mev_get_last_pollset

Pointed out by CodeSonar

Closes #16894
This commit is contained in:
Daniel Stenberg 2025-04-01 10:16:04 +02:00
parent 1f844dd3f0
commit 50c1e62fa4
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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;
}